I making a script and you need to set up weapons like so in the config
$data_weapons[1].bla = 7
$data_weapons[1].otherbla = true
my question is what class/module
would I have this in so that it works?
Game_System?
Module RPG?
I'm not sure
thanks for the help
You can put that virtually anywhere.
I think... :P
you sure?
Quote from: Ryexander on May 10, 2009, 11:21:31 pm
I making a script and you need to set up weapons like so in the config
$data_weapons[1].bla = 7
$data_weapons[1].otherbla = true
my question is what class/module
would I have this in so that it works?
Game_System?
Module RPG?
I'm not sure
thanks for the help
Make a new slot for script whatever and do this
module RPG
class Weapon
def bla
case id
when weapon id then return true/false/number
end
return true/false/number
end
end
end
Than to call it you use
$data_weapons
- .bla
example
print $data_weapons[1].bla
Will print what the weapon id's bla is
Not what I was Asking G_G but Resolved anyway.