Bullet_Darkness
Member
Okay so I came up with a great idea were an weapon's tool in XAS is equal to a variable.
It comes up with an error:
Script "XRXS - XAS" line 122: NoMethodError occured.
undefined method '[]' for nill:NilClass
The code:
The reason i want this is becuase you can make weapons upgradeable by changing the variable tool for the weapon.
AND you can put the same variable for 10 weapons and make it a profiencieny.
If anybody can help me, please do!
It comes up with an error:
Script "XRXS - XAS" line 122: NoMethodError occured.
undefined method '[]' for nill:NilClass
The code:
Code:
# Definição de qual ferramenta será
# ativada quando equipar a arma.
#
# WEP_ID_TOOL = { A=>B, A=>B, ...}
#
# A = ID da Arma. Thats the weapon
# B = ID da Ferramenta. Thats the tool that the weapon uses.
WEP_ID_TOOL = {
# A B Weapon Name
1=>1, # Bronze Sword
2=>2, # Fire Sword
3=>3, # Light Sword
4=>4, # Dwarf Axe
5=>5, # Wizard Staff
6=>6, # Elf Bow
7=>7, # Disc
8=>$game_variables[1] #line 122
}
AND you can put the same variable for 10 weapons and make it a profiencieny.
If anybody can help me, please do!