I'm making a maze that involves sliding, i have it set up so that the unit is only turnable on the slide terrain when it has an item. i have a dummy unit placed in a region that looks like the item. I want it so that it give the entering hero the item when he goes into the region. Now i have a different region with 5 of the item in it. Here is my current trigger, obviously there are many disadvantages to it
i want to know how i would make it so that it just gives a hero an item of that type which is not somewhere on the map.
I also couldnt find the setting in OE that makes the item dissapear when dropped. So i was forced to do this
any solutions to these problems would be greatly appreciated. =)
Code:
Rollerblades
Events
Unit - A unit enters Region 043 <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Entering unit)) Equal to Paladin
((Entering unit) has an item of type Rollerblades) Equal to False
Then - Actions
Hero - Give (Random item in Region 044 <gen>) to (Entering unit)
Else - Actions
Do nothing
i want to know how i would make it so that it just gives a hero an item of that type which is not somewhere on the map.
I also couldnt find the setting in OE that makes the item dissapear when dropped. So i was forced to do this
Code:
item control
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Item - Pick every item in (Playable map area) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked item) is Owned) Equal to False
Then - Actions
Item - Remove (Picked item)
Else - Actions
Do nothing