Guest Access
ACTIVATED
ACTIVATED
ACTIVATED
profile
MimiChan
profile
I tried it but failed @.@
Is there a way to make a state that reflects back x% of damage you receive?
XAS has it as Action Short Range Effect but it only works when you attack the enemy (and the damage you get is based on your max hp, not on your damage)
Is the one XAS has.
I did a bunch of cool skills already like damage based on level/ct, play dead, passive mastery (raises your attack) but this one got me stuck so a little help is appreciated ^^;
My current game *.*
Is there a way to make a state that reflects back x% of damage you receive?
XAS has it as Action Short Range Effect but it only works when you attack the enemy (and the damage you get is based on your max hp, not on your damage)
- Code:
def action_short_range_effect(bullet,user,dir_index,dirset)
if self.battler.is_a?(Game_Enemy) and bullet.action.short_range == true and
user.battler.is_a?(Game_Actor) and self.hit_reaction == true
hit_damage_effect = XAS_BA_ENEMY::ENEMY_HIT_DAMAGE_REACTION[self.battler.id]
hit_add_states_effect = XAS_BA_ENEMY::ENEMY_HIT_ADDSTATES_REACTION[self.battler.id]
# Damage effect
if hit_damage_effect != nil
if user.battler.states.include?(XAS::INVINCIBLE_ID)
user.battler.damage = $data_states[XAS::INVINCIBLE_ID].name.to_s
user.battler.damage_pop = true
else
damage_efc = user.battler.maxhp * hit_damage_effect / 100
user.battler.damage = damage_efc
user.battler.damage_pop = true
user.battler.hp -= damage_efc
if damage_efc > 0
$game_screen.start_shake(10,15,10)
$game_screen.start_flash(Color.new(255, 155, 55, 255),10)
user.blow(dirset[dir_index])
else
$game_screen.start_flash(Color.new(55, 155, 255, 255),20)
end
end
end
Is the one XAS has.
I did a bunch of cool skills already like damage based on level/ct, play dead, passive mastery (raises your attack) but this one got me stuck so a little help is appreciated ^^;
My current game *.*
ACTIVATED
Show Signature
ACTIVATED
||||||||||
||||||||||
||||||||||
profile
supercow
profile
, sorry i cant really help you with the script , but can i tell you that your game looks very promising , play dead>? what the
back on topic ,something that i dont quite understand about your request is, how is the damage going to be reflected back? automaticaly?
back on topic ,something that i dont quite understand about your request is, how is the damage going to be reflected back? automaticaly?
||||||||||
Show Signature
||||||||||
ACTIVATED
ACTIVATED
ACTIVATED
profile
MimiChan
profile
Yep automatically as long as you are under the state, so every time you are attack by a short range attack, you automatically reflect back parts of the damage to the attacker.
Yep play dead o.O (fake your death so monster will stop attacking you) I even got a counter attack skill implemented *.*
Yep play dead o.O (fake your death so monster will stop attacking you) I even got a counter attack skill implemented *.*
ACTIVATED
Show Signature
ACTIVATED
GAMEFACE101 » MAKERS » RPG MAKERS » RMXP ( ROLE PLAY GAME MAKER XP ) » RMXP + "XAS" ( ACTION BATTLE SYSTEM ) »XAS State that reflects damage?
Similar topics