- Joined
- Jan 6, 2014
- Messages
- 182
- Reaction score
- 39
- First Language
- Engrish
- Primarily Uses
Well gee, thanks for changing it immediately after I posted XD
And whaddya mean "why is it using @'x'_old?!" ? They all use the "@'x'_old" in their respected places =__=
TESTING: And now it appears simply to not function. Ack
Take 1: Touching the "purge" event removes everything (including the extra set of armor for the 2nd actor), but after talking to the guard and running over the "restore" event, nothing happens.
Take 2: And after doing everything in the proper order (guard, "purge", "restore"), only the ITEMS show back up. The weapons & armors disappear, despite them all having the same process @__@
Also, I'm not seeing any variable mismatches. But w/e - here it is again.
And whaddya mean "why is it using @'x'_old?!" ? They all use the "@'x'_old" in their respected places =__=
TESTING: And now it appears simply to not function. Ack
Take 1: Touching the "purge" event removes everything (including the extra set of armor for the 2nd actor), but after talking to the guard and running over the "restore" event, nothing happens.
Take 2: And after doing everything in the proper order (guard, "purge", "restore"), only the ITEMS show back up. The weapons & armors disappear, despite them all having the same process @__@
Also, I'm not seeing any variable mismatches. But w/e - here it is again.
Code:
class Game_Party#~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-## Defines call for vacating inventory ##~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-#def clear_items_all(save) $game_party.members.each do |act| act.clear_equipments end if save @items_old = @items @weapons_old = @weapons @armors_old = @armors end @items = {} @weapons = {} @armors = {} end#~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~~## Defines call for vacating ONLY items ##~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-# def clear_items(save) if save @items_old = @items end @items = {} end #~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-## Defines call for vacating ONLY weapons ##~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-# def clear_weaps(save) $game_party.members.each do |act| act.change_equip(0, nil) act.change_equip(7, nil) end if save @weaps_old = @weapons end @weapons = {} end#~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~~~## Defines call for vacating ONLY armors ##~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~# def clear_arms(save) $game_party.members.each do |act| act.change_equip(1, nil) act.change_equip(2, nil) act.change_equip(3, nil) act.change_equip(4, nil) act.change_equip(5, nil) act.change_equip(6, nil) end if save @arms_old = @armors end @armors = {} end #~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~## Defines call for restoring all items previously taken ##~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~# def regain_items_all regain_items regain_weaps regain_arms end#~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-## Defines recall for restoring ONLY items previously taken ##~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-# def regain_items if @items_old.nil? @items_old = {} return end @items_old.each do |item| #basically we iterate each of the old weapons #then check if that weapon exists right now #if yes, we add the amounts, else we set the amount # ~Engr Shana @items[item[0]].nil? ? @items[item[0]] = item[1] : @items[item[0]] += item[1] end end #~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-## Defines recall for restoring ONLY weapons previously taken ##~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-# def regain_weaps if @weaps_old.nil? @weaps_old = {} return end @weaps_old.each do |weap| #Repeat of above~ @weapons[weap[0]].nil? ? @weapons[weap[0]] = weap[1] : @weapons[weap[0]] += weap[1] end end #~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--~-~-~-~-~-~-~-~-## Defines recall for restoring ONLY armors previously taken ##~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--~-~-~-~-~-~-~-~-# def regain_arms if @arms_old.nil? @arms_old = {} return end @arms_old.each do |arm| #Repeat of above~ @armors[arm[0]].nil? ? @armors[arm[0]] = arm[1] : @armors[arm[0]] += arm[1] end endend