- Joined
- Jul 9, 2012
- Messages
- 159
Hello!
I'm not very good at hashtables still.
The triggers below are the bits in in my trigger that doesn't work. The problem is that the values aren't stored into the hashtable.
In my example shown below the value is just set to Manifestations_Index.
I'm not very good at hashtables still.
The triggers below are the bits in in my trigger that doesn't work. The problem is that the values aren't stored into the hashtable.
In my example shown below the value is just set to Manifestations_Index.
-
Test 3 Initial
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Hashtable - Create a hashtable
-
Set MarksOfBarrowDen_Hash = (Last created hashtable)
-
For each (Integer Manifestations_Index) from 1 to 4, do (Actions)
-
Loop - Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))) and do (Actions)
-
Loop - Actions
-
Set MarksOfBarrowDen_Target = (Picked unit)
-
Custom script: set udg_MarksOfBarrowDen_Handle = GetHandleId(udg_MarksOfBarrowDen_Target)
-
Set MarksOfBarrowDen_Stack[Manifestations_Index] = Manifestations_Index
-
Hashtable - Save MarksOfBarrowDen_Stack[Manifestations_Index] as Manifestations_Index of MarksOfBarrowDen_Handle in MarksOfBarrowDen_Hash
-
-
-
-
-
-
-
Test 3
-
Events
-
Player - Player 1 (Red) types a chat message containing !!! as An exact match
-
-
Conditions
-
Actions
-
For each (Integer Manifestations_Index) from 1 to 4, do (Actions)
-
Loop - Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))) and do (Actions)
-
Loop - Actions
-
Set MarksOfBarrowDen_Target = (Picked unit)
-
Custom script: set udg_MarksOfBarrowDen_Handle = GetHandleId(udg_MarksOfBarrowDen_Target)
-
Set MarksOfBarrowDen_Stack[Manifestations_Index] = (Key (Load Manifestations_Index of MarksOfBarrowDen_Handle in MarksOfBarrowDen_Hash))
-
Game - Display to (All players) the text: (String(MarksOfBarrowDen_Stack[Manifestations_Index]))
-
-
-
-
-
-
Last edited: