RESOLVED-Consumable weapons?

Started by [Faint], October 04, 2009, 09:36:56 pm

Previous topic - Next topic

[Faint]

October 04, 2009, 09:36:56 pm Last Edit: October 06, 2009, 05:18:59 pm by [Faint]
Ok I was not really sure where to post this but  I figured here would be best.

I am trying to make events that require a certain weapon to be equiped which is easy with a conditional branch. then the event would subtract 1 from the total amount of that weapon but when I do this through the "change weapon" option it will subtract the 1 unless the last 1 is the 1 equiped then it does nothing. is there a way to change this so even if the last of that weapon in the characters inventory is the 1 equiped it will still take it away?
Scripts by me - State Requirement Skills
current project - Project: AURA

fugibo

Quote from: [Faint] on October 04, 2009, 09:36:56 pm
Ok I was not really sure where to post this but  I figured here would be best.

I am trying to make events that require a certain weapon to be equiped which is easy with a conditional branch. then the event would subtract 1 from the total amount of that weapon but when I do this through the "change weapon" option it will subtract the 1 unless the last 1 is the 1 equiped then it does nothing. is there a way to change this so even if the last of that weapon in the characters inventory is the 1 equiped it will still take it away?


Unequip the weapon, then remove it.

[Faint]

mormally that wold work but my case is a unique one. I need it to automatically take the weapon from the inventory even if it is above 1 and if it is at 1 un equip it and then remove it but there is no conditional branch option to make it check the amount of a weapon in the inventory and there is no way to set the amount to a variable as far as i know. so any other suggestions?
Scripts by me - State Requirement Skills
current project - Project: AURA

G_G

in a script call do this
$game_variables[var_id] = $game_party.weapon_number(wep_id)


That'll set the variable to the amount of the weapon the party has.

[Faint]

omg thank you I figured it was a basic call script but i am new to scripting. ( still lerning :( ) this problem has been holding me up for like 3 days now lol but thank you.
Scripts by me - State Requirement Skills
current project - Project: AURA