Original Source
- Original title: Applying Character State on Death
- Original author: Kloqdq
- Original date: July 1, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/applying-character-state-on-death.64572/
- Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker VXAce Support
Summary
Hello everyone! Today I was working on my project and I came up with an idea for a character. Basically, when the character is killed in battle, I want to have them instead of dying, entering a state that keeps them alive but just weaken. I have the state but I'm not sure how to apply it to the 2 characters that have this special state. I figure it can be entered into the system via scripting but I'm not sure how the live of script should look. { "lightbox_close":...
Archived First Post
Today I was working on my project and I came up with an idea for a character. Basically, when the character is killed in battle, I want to have them instead of dying, entering a state that keeps them alive but just weaken. I have the state but I'm not sure how to apply it to the 2 characters that have this special state. I figure it can be entered into the system via scripting but I'm not sure how the live of script should look.
Protected download
I think I add the state in this line here.
Would my line look like;
(@hp == 0) ? add_state(death_state_id) || add_state(avoid-death_state_id[1].include?(@actor_id))) : remove_state(death_state_id)
I'm not really sure so any help would be greatly appreciated. Thank you!
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...
