Revive Fallen Ally (RPG 2.8.1)
Posted: January 27th, 2013, 2:04 pm
I've created a nice little off-hand weapon that creates an AoE healing spring that basically heals you! I figured it might work if cast on a fallen ally... I was wrong!
So my question is: Is there any way to code the weapon to revive (change from CS_DEAD to CS_ALIVE) when casting the spell on them?
I'm sure it's just a simple case of:
if (r_state_get self) CS_DEAD
Then make self CS_ALIVE
But as you can plainly see my coding is obviously top notch (Sarcasm
). If someone could let me know what script to use that would be awesome, then I can just link the Script to my item and Bingo-Bango it'll work a treat!
Need this as i'm making a map where a castle of allies is under seige by (hopefully) around 50-75 enemies plus 4 Trebuchet's with a range of about 1million lol. Of course the story goes that your allies are dropping like flies and you could either run out and try to take down all the enemies alone or tactically attack the enemy while resurrecting fallen allies.
Hope that makes sense!
So my question is: Is there any way to code the weapon to revive (change from CS_DEAD to CS_ALIVE) when casting the spell on them?
I'm sure it's just a simple case of:
if (r_state_get self) CS_DEAD
Then make self CS_ALIVE
But as you can plainly see my coding is obviously top notch (Sarcasm

Need this as i'm making a map where a castle of allies is under seige by (hopefully) around 50-75 enemies plus 4 Trebuchet's with a range of about 1million lol. Of course the story goes that your allies are dropping like flies and you could either run out and try to take down all the enemies alone or tactically attack the enemy while resurrecting fallen allies.
Hope that makes sense!