- Joined
- Jul 10, 2006
- Messages
- 3,315
I'm trying to replace this little gem:
First time using hashtables, I've read the beginner tutorial twice over, as well as the other one.
Is there a way to save a unit type as a handle? Because I can't find it.
I tried Conversion - Convert unit-type to order, but this didn't compile.
I tried a string ID (converting unit type to string), which loads no data.
Can hashtables not actually handle (excuse the pun) unit types? Or do I need to go back to the tutorial and add more patience?
-
UFS Add Unit
-

Events
-


Game - UnitIndexEvent becomes Equal to 1.00
-
-

Conditions
-


(UDexUnits[UDex] is A Hero) Equal to False
-
-

Actions
-


For each (Integer B) from 1 to ufsVAR_unitId, do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Unit-type of UDexUnits[UDex]) Equal to ufsVAR_unitType[(Integer B)]
-
-





Then - Actions
-






Unit - Add ufsVAR_FuseAbility to UDexUnits[UDex]
-
-





Else - Actions
-
-
-
-
-
First time using hashtables, I've read the beginner tutorial twice over, as well as the other one.
Is there a way to save a unit type as a handle? Because I can't find it.
I tried Conversion - Convert unit-type to order, but this didn't compile.
I tried a string ID (converting unit type to string), which loads no data.
Can hashtables not actually handle (excuse the pun) unit types? Or do I need to go back to the tutorial and add more patience?









