• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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