Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Revive Fallen Ally (RPG 2.8.1)

Chat and ask questions about the RPG Maker Mode here.
Post Reply
coopziana
Member
Member
Posts: 27
Joined: July 23rd, 2012, 9:58 am
Name: Ben

Revive Fallen Ally (RPG 2.8.1)

Post by coopziana »

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 :P ). 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!
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Revive Fallen Ally (RPG 2.8.1)

Post by Hirato »

Give it a script effect that invokes r_resurrect on the target.
This is not a url, clicking it is pointless
coopziana
Member
Member
Posts: 27
Joined: July 23rd, 2012, 9:58 am
Name: Ben

Re: Revive Fallen Ally (RPG 2.8.1)

Post by coopziana »

Thanks Hirato,

Could you give me an example script as I have no idea how this works, since adding the script I cannot pick the item up anymore with invalid reference "self" and has no "faction".
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Revive Fallen Ally (RPG 2.8.1)

Post by Hirato »

inside statuses

Code: Select all

r_status_addscript [
    r_resurrect self
] 100
r_status_addgeneric $STATUS_HEALTH 10 10000 //or whatever your health effect is
EDIT:
This should be the status effect you're assigning to your item you're using to revive the fallen.
This is not a url, clicking it is pointless
Post Reply