- Joined
- Jul 12, 2021
- Messages
- 95
Trigger malfunctions when an Integer variable is set to the HandleID of a unit.
Works:
What can I do to solve this problem? Do I have to divide it by 1000 for it to work?
Works:
-
IntegerOfRemovingUnitsValue
-
Events
- Player - Player 1 (Red) types a chat message containing run as An exact match
- Conditions
-
Actions
- Set VariableSet Unit[1] = Paladin 0000 <gen>
- Hashtable - Save Handle OfUnit[1] as 1 of 1 in (Last created hashtable).
- Set VariableSet TestInteger_Copy = 1
- Quest - Display to (All players) the Quest Update message: (String(TestInteger_Copy))
- Set VariableSet IntegerOfRemovingUnits[TestInteger_Copy] = 4
- Quest - Display to (All players) the Quest Update message: (String(IntegerOfRemovingUnits[TestInteger_Copy]))
-
Events
-
IntegerOfRemovingUnitsValue
-
Events
- Player - Player 1 (Red) types a chat message containing run as An exact match
- Conditions
-
Actions
- Set VariableSet Unit[1] = Paladin 0000 <gen>
- Hashtable - Save Handle OfUnit[1] as 1 of 1 in (Last created hashtable).
- Set VariableSet TestInteger_Copy = (Key (Load 1 of 1 in (Last created hashtable).).)
- Quest - Display to (All players) the Quest Update message: (String(TestInteger_Copy))
- Set VariableSet IntegerOfRemovingUnits[TestInteger_Copy] = 4
- Quest - Display to (All players) the Quest Update message: (String(IntegerOfRemovingUnits[TestInteger_Copy]))
-
Events
-
IntegerOfRemovingUnitsValue
-
Events
- Player - Player 1 (Red) types a chat message containing run as An exact match
- Conditions
-
Actions
- Set VariableSet Unit[1] = Paladin 0000 <gen>
- Hashtable - Save Handle OfUnit[1] as 1 of 1 in (Last created hashtable).
- Set VariableSet TestInteger_Copy = (Key (Load 1 of 1 in (Last created hashtable).).)
- Set VariableSet TestInteger_Copy = (TestInteger_Copy / 1000)
- Quest - Display to (All players) the Quest Update message: (String(TestInteger_Copy))
- Set VariableSet IntegerOfRemovingUnits[TestInteger_Copy] = 4
- Quest - Display to (All players) the Quest Update message: (String(IntegerOfRemovingUnits[TestInteger_Copy]))
-
Events
What can I do to solve this problem? Do I have to divide it by 1000 for it to work?