- Joined
- Dec 26, 2021
- Messages
- 45
Hello,
just picking up hashtables again and have a noob issue.
udg_valueUT is a unit type variable --> effectively i am using the ut as an int key and trying to grab/save a book to index 0 - for some reason this crashes and i am not clear on why.
just picking up hashtables again and have a noob issue.
udg_valueUT is a unit type variable --> effectively i am using the ut as an int key and trying to grab/save a book to index 0 - for some reason this crashes and i am not clear on why.
-
Actions
- Trigger - Run GetUnitTypeCost <gen> (ignoring conditions)
- Custom script: set udg_int = udg_valueUT
- Set VariableSet isFound = (Load 0 of int from cardDictionary.)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- isFound Equal to True
-
Then - Actions
- Set VariableSet isUnit = isFound
-
Else - Actions
- Unit - Create 1 valueUT for Neutral Passive at mapCenter facing Default building facing degrees
- Set VariableSet unit = (Last created unit)
- Unit - Remove (Last created unit) from the game
- Trigger - Run GetDictionaryValueUT <gen> (ignoring conditions)
-
If - Conditions