Pages: 1
Topic closed
i am trying to make a simple rpg using this engine but for some reason i cant seem to find a script that does what i need. i need something like: if enemy 1 health = 0 sprite 2 go to x 107 y 126, set enemy 2 heal to 25 sprite 8 go to x 163 y -54, set health to 25 set magic to 120 set level to 2.
Offline
darkfuji wrote:
i am trying to make a simple rpg using this engine but for some reason i cant seem to find a script that does what i need. i need something like: if enemy 1 health = 0 sprite 2 go to x 107 y 126, set enemy 2 heal to 25 sprite 8 go to x 163 y -54, set health to 25 set magic to 120 set level to 2.
sorry it is health not heal.
Offline
Put this script below on sprite 2whenclicked
forever ifenemy 1 health<1broadcastmove1 ▼and waitsetenemy 2 health ▼to25broadcastmove2 ▼and waitsethealth ▼to25setmagic ▼to120setlevel ▼to2
Put this script below on sprite 8when I receivemove1 ▼go to x:107y:126stop script
when I receivemove2 ▼go to x:163y:-54stop script
Offline
Wes64 wrote:
Put this script below on sprite 2whenclicked
forever ifenemy 1 health<1broadcastmove1 ▼and waitsetenemy 2 health ▼to25broadcastmove2 ▼and waitsethealth ▼to25setmagic ▼to120setlevel ▼to2Put this script below on sprite 8when I receivemove1 ▼go to x:107y:126stop scriptwhen I receivemove2 ▼go to x:163y:-54stop script
thanks
Offline
Topic closed
Pages: 1