LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



View previous topic View next topic Go down Message [Page 1 of 1]

ACTIVATED
ACTIVATED
#1 XAS State that reflects damage? Empty XAS State that reflects damage?
Loading

MimiChan

MimiChan
ACTIVATED
ACTIVATED
ACTIVATED
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)

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
||||||||||
||||||||||
#2 XAS State that reflects damage? Empty Re: XAS State that reflects damage?
Loading

supercow

supercow
||||||||||
||||||||||
profile
Shocked , sorry i cant really help you with the script , but can i tell you that your game looks very promising Smile , play dead>? what the Shocked

back on topic Smile ,something that i dont quite understand about your request is, how is the damage going to be reflected back? automaticaly?
||||||||||
Show Signature
||||||||||
ACTIVATED
ACTIVATED
#3 XAS State that reflects damage? Empty Re: XAS State that reflects damage?
Loading

MimiChan

MimiChan
ACTIVATED
ACTIVATED
ACTIVATED
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 *.*
ACTIVATED
Show Signature
ACTIVATED

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 1 of 1]

Similar topics

-

» The state of the internet

 

Chatbox system disabled
Personal messaging disabled