Alternate Death Script for Android Character

Rablax77

Warper
Member
Joined
Oct 30, 2013
Messages
2
Reaction score
0
Primarily Uses
Hello, I'm new to this forum, so my apologies if by any chance this is in the wrong place to be posting this.

I'm looking for help with something, this goes a little bit further than a script, anyway. Here is what I ask for, I have an android character, I want him to have an alternate death state by the name of Disrepair. I did a little bit of research and didn't find much, and I haven't much skill in coding. 

Where items come in, I want this character to be revived and healed by Repair Kits, if that involves some sort of scripting some help would be appreciated.

Also, I would also appreciate if by any chance someone could point me in the right direction for a face for this character, I will upload an image and say which one.

It's the copper-y one, in the top right corner, all I need is a face, something simple.

Scrap Metal.png
 

ShadowLurk

Tanoshii~
Veteran
Joined
Feb 14, 2014
Messages
226
Reaction score
53
Primarily Uses
Well, you can redefine death_state_id for those actors.

module CFG DISREPAIR_DEATH_STATE = 4 # put the "disrepair" state number here. DISREPAIR_DEATH_STATE_ACTORS = [3, 4, 6] # Put actor ids with "disrepair" as death state. endclass Game_Actor def death_state_id if CFG::DISREPAIR_DEATH_STATE_ACTORS.include?(@actor_id) return CFG::DISREPAIR_DEATH_STATE else return super end end endFor the skills/items, make Repair Kit remove Disrepair instead of regular Death.
 

Rablax77

Warper
Member
Joined
Oct 30, 2013
Messages
2
Reaction score
0
Primarily Uses
Well, you can redefine death_state_id for those actors.

module CFG DISREPAIR_DEATH_STATE = 4 # put the "disrepair" state number here. DISREPAIR_DEATH_STATE_ACTORS = [3, 4, 6] # Put actor ids with "disrepair" as death state. endclass Game_Actor def death_state_id if CFG::DISREPAIR_DEATH_STATE_ACTORS.include?(@actor_id) return CFG::DISREPAIR_DEATH_STATE else return super end end endFor the skills/items, make Repair Kit remove Disrepair instead of regular Death.
Thanks, this helped me quite a bit.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top