Started by 1supermiguel, January 28, 2016, 02:45:37 am
when 4 # play sound $game_system.se_play($data_system.decision_se) # temporary variables old, new = @edit_window.trigger.action_type, @edit_trigger_window.index # if not skills availabled and selected skill action type if @skills.size == 0 && new == BlizzABS::TRGSkill # it is actually item action type new = BlizzABS::TRGItem end # if wasn't skill action type until now if old != BlizzABS::TRGSkill && new == BlizzABS::TRGSkill # set first available skill @edit_window.trigger.action_data = @skills # if wasn't item action type until now elsif old != BlizzABS::TRGItem && new == BlizzABS::TRGItem # set first available item @edit_window.trigger.action_data = @items end # set new value for trigger @edit_window.trigger.action_type = new # refresh trigger display @edit_window.refresh # return to edit command window return_to_edit_command_window
if @skills.size == 0 && new == BlizzABS::TRGSkill # it is actually item action type new == BlizzABS::TRGItem # epic typoend...@edit_window.trigger.action_type = @edit_trigger_window.index # which ignores the "new = BlizzABS::TRGItem" completely
Quote from: winkioI do not speak to bricks, either as individuals or in wall form.
Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.