I recieved this script from dricc back in february and was wondering if someone could help me edit the script.
#--------------------------------------------------------------------------
# autorevive item
#--------------------------------------------------------------------------
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * Change HP
# hp : new HP
#--------------------------------------------------------------------------
def hp=(hp)
@hp = [[hp, maxhp].min, 0].max
if @hp == 0 and not state?(1) and not @immortal
for item in $game_party.items
if item.note == "<Autorevive>" and @hp == 0 then
@hp=1
$game_party.consume_item(item)
else
add_state(1) # Add incapacitated (state #1)
@added_states.push(1)
end
end
elsif @hp > 0 and state?(1)
remove_state(1) # Remove incapacitated (state #1)
@removed_states.push(1)
end
end
end
I need it to ask if i want to use the item before it revives the character. If anyone could tell me how I would appreciate it.