Title says it all. I don't have idea on how to this happen, so it'd be really nice if anyone could help. I'm really new to this and have no prior experience scripting so this has been really confusing.
XP Drain SP like poison
RGSS Script RequestsSince there is no direct option in RMXP to drain SP, I used the same formula as "Slip Damage" (Game_Party):
I created a state and made an event with conditions that check each team member (Party):
Ruby:
def check_map_slip_damage
for actor in @actors
if actor.hp > 0 and actor.slip_damage?
actor.hp -= [actor.maxhp / 100, 1].max
if actor.hp == 0
$game_system.se_play($data_system.actor_collapse_se)
end
$game_screen.start_flash(Color.new(255,0,0,128), 4)
$game_temp.gameover = $game_party.all_dead?
end
end
end
I created a state and made an event with conditions that check each team member (Party):
Is there any way that I could force the SP drain state whenever a specific accessory is equipped?
Changing conditions:
Thank you very much! I really appreciate it.
Original thread: https://forums.rpgmakerweb.com/threads/drain-sp-like-poison.180212/