I read a short guide on hashtables, but I'm still a bit stuck.
Basicly this is what I'd like:
TRIGGER 1
TRIGGER 2
As you can see, trigger 2 is a bit blank,
And I don't really know if this will work anyway.
Basicly I need to create a trigger that periodically creates Regions and Items
And a trigger that runs when a unit enters the Regions
Thanks in advance!
Basicly this is what I'd like:
TRIGGER 1
Code:
Events:
- Every 10 seconds
Actions:
- set TempPoint = Random Point on Map
- Item - Create Boots of Speed at TempPoint
- set ItemRegion = Area around TempPoint of area 50
- Trigger - Add to TRIGGER 2, a unit enters ItemRegion
- Hashtable - Save handle of ItemRegion as 0 of (Key Last Created Item) in Hashtable
- call RemoveLocation (udg_TempPoint)
TRIGGER 2
Code:
Events:
- A unit enters Item Region
Actions
- Remove region
- Remove item
- [Then my other actions]
As you can see, trigger 2 is a bit blank,
And I don't really know if this will work anyway.
Basicly I need to create a trigger that periodically creates Regions and Items
And a trigger that runs when a unit enters the Regions
Thanks in advance!