Hi, I was wondering, how would I go about giving an item a characteristic? For example, I would like $game_party.item_number[1] to be [/B]$game_party.item_number[1].stackable[1]
whereas $game_party.item_number[2].not_stackable
but $game_party.item_number[3].stackable[2]
Thus begin, able to determine whether the item will show up again in user inventory, or whether item will stack.
Sorta like this:
Just doesnt work when i try to implement it. Says something about wrong number of arguments(0 for 1)
Same goes with Rarity:
$game_party.item_number[1].rare[1], etc...
Lastly, How would I create, and implement a new Parameter, creating my own, I know RPG::Actor has the 6, but i would like to create one, and keep track of it my self, and have whether the player would like to just focus on gaining experience in his defense, strength, accuracy and so on.
I'm not looking to find someone elses script yet to find a way to start my own, Thanks! *Although a reference to a similiar project would also be appreciated!*
whereas $game_party.item_number[2].not_stackable
but $game_party.item_number[3].stackable[2]
Code:
stackable = [1 => 99999999, 2 => 99, 3 => 25, 4 => 10]
not_stackable = 1
Sorta like this:
Code:
for i in 1..$game_party.item_number[i]
if $game_party.item_number[i].is_stackable?
return true
else
return $game_party.item_number[i].non_stackable
end
end
Just doesnt work when i try to implement it. Says something about wrong number of arguments(0 for 1)
Same goes with Rarity:
$game_party.item_number[1].rare[1], etc...
Code:
rare = [1 => [COLOR=Lime]system_color[/COLOR], 2 => [COLOR=Red]normal_color[/COLOR]]
Lastly, How would I create, and implement a new Parameter, creating my own, I know RPG::Actor has the 6, but i would like to create one, and keep track of it my self, and have whether the player would like to just focus on gaining experience in his defense, strength, accuracy and so on.
I'm not looking to find someone elses script yet to find a way to start my own, Thanks! *Although a reference to a similiar project would also be appreciated!*