Hello,
we would like to know if there's a way to equip a weapon or armor, according to what the "hero" is currently wearing (equipping).
For example, if our hero is equipping the weapon with ID n. 100 we want that, via script, our hero changes the weapon automatically to a new weapon with the ID 200.
If he's wearing weapon id120 we'd like that, after call script, he wears weapon id220, if 121:221 and so on...
What we tried to do is manipulate the id number of the weapon the hero is equipping through this script:
1. Create Variable Operation called: 0061:weaponid
Operand: SCRIPT
$game_actors[1].equips[0].id
2. In the event we put a call script:
add_weapon($game_variables[61],1)
This actually works but if we add a costant to the $game_variable, the game crashes ex.
add_weapon($game_variables[61]+100,1)
+100 represents the increase rate of our weapon id, which means that old weapon should be replaced with a new weapon which can be found at the position
+100 in the database
The return error is:
Script 'Game Interpreter' line 1411: NoMethodErrorOccured. Undefined method 'note' for nil:NilClass
Please help us!!!!!!
We will pay u with lots of beeers!
Lots of...