• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Problem with New Angel Arena map i am making.

Status
Not open for further replies.
Level 3
Joined
Aug 14, 2006
Messages
19
I am making a new map, named Angel Arena: Frozen

Basically i'm balancing the Angel Arena map, and adding much new features such as evolving heroes, also altered tileset and will be changing terrain/items more as i finish new versions.

However i am having one major problem concerning the new evolving heroes, they lose their items when you advance to the next hero and i have, as of yet, completely failed to fix this, could anyone tell me how to do it?
 
Level 1
Joined
Aug 19, 2006
Messages
6
I hope I understood you correctly;
I made an example for you which should hopefully help.

helphr8.jpg
 
Level 8
Joined
Feb 10, 2006
Messages
466
OOooor if you want to preserve item order you need to add dummy items into empty slots befor giving items, and then remove them.

ToolsInheritItems
Events
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set Item = (Item carried by Unit2 in slot (Integer A))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Item Equal to No item
Then - Actions
Hero - Create Dummy and give it to Unit
Else - Actions
Hero - Give Item to Unit
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set Item = (Item carried by Unit in slot (Integer A))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of Item) Equal to Dummy
Then - Actions
Item - Remove Item
Else - Actions
 
Status
Not open for further replies.
Top