Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How to attach an element in game_battler 3

Can someone please help me!!! i want to make a condition in game_battler3 where, for instance:
if element_id == to (13)
@totaldam = (attacker.atk @ attacker.agi) / 2
end

However, the condition does not work. It says that the sytem does not recognize the variable.
 
I'm assuming that this is to be placed in method attack_effect in Game_Battler 3
and that @ you have there means +

Code:
if attacker.element_set.include?(13)
  self.damage += (attacker.atk + attacker.agi) / 2
end

also this belongs in the RGSS Support Forum since it deals with scripts
 

Nava

Member

yes trickster is right if you have the @ sign there RGSS will think that you are talking about a variable not the attackers agility, which would cause you to have that error message because it is looking for a non-existant variable
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top