I wanna that when i click on the item (like in battle tanks) that it will be upgraded.
Wreaper Wreaper Level 2 Joined Apr 16, 2009 Messages 15 Jul 19, 2009 #1 I wanna that when i click on the item (like in battle tanks) that it will be upgraded.
Pharaoh_ Pharaoh_ Level 40 Joined Nov 6, 2008 Messages 8,316 Resources: 13 Resources Icons 4 Spells and Systems 7 User Interface 1 Tutorials 1 Jul 19, 2009 #2 MapInit Events Map Initialization Conditions Actions Set Items[1] = (Item Upgrade None) Set Items[2] = (Items Upgrade One) Set Items[3] = (Items Upgrade Two) Trigger1 Events Unit - A unit uses an item Conditions Actions For each (Integer A) from 1 to 3, do (Actions) Loop - Actions If/ Then/ Else If (Conditions) (Item being manipulated) Equal to Items[IntegerA] Then (Actions) Hero - Drop (Item being manipulated) from (Triggering unit) Item - Remove (Last dropped item) Hero - Add Items[((Integer A) + 1)] to (Triggering unit) Else (Actions)
MapInit Events Map Initialization Conditions Actions Set Items[1] = (Item Upgrade None) Set Items[2] = (Items Upgrade One) Set Items[3] = (Items Upgrade Two) Trigger1 Events Unit - A unit uses an item Conditions Actions For each (Integer A) from 1 to 3, do (Actions) Loop - Actions If/ Then/ Else If (Conditions) (Item being manipulated) Equal to Items[IntegerA] Then (Actions) Hero - Drop (Item being manipulated) from (Triggering unit) Item - Remove (Last dropped item) Hero - Add Items[((Integer A) + 1)] to (Triggering unit) Else (Actions)