vonDarkmoor
New Member
- Reaction score
- 9
I was trying to find a way to save a unit type in a hashtable but couldn't find anything that said "unit-type" but i did find a "unitpool" and when i clicked on it i got the normal screen(see below) When i click on the unitpool hyperlink, to fill in the option, my Editor "stops working" and crashes, any ideas why?
A related question that could be a work around: would this work?
in conjunction with
Or does the action of removing the unit after it was saved null the save?
A related question that could be a work around: would this work?
Trigger:
- Map Initialization
- Events
- Map initialization
- Conditions
- Actions
- Visibility - Disable fog of war
- Visibility - Disable black mask
- Game - Set the time of day to 12.00
- Game - Turn the day/night cycle Off
- Hashtable - Create a hashtable
- Set HashTable = (Last created hashtable)
- For each (Integer A) from 0 to 100, do (Actions)
- Loop - Actions
- For each (Integer B) from 1 to 12, do (Actions)
- Loop - Actions
- Set Player[(Integer B)] = (Integer B)
- Unit - Create 1 Place Holder for (Player((Integer B))) at (Center of (Playable map area)) facing Default building facing degrees
- Hashtable - Save Handle Of(Last created unit) as (Integer A) of (Integer B) in HashTable
- Unit - Remove (Last created unit) from the game
- Loop - Actions
- For each (Integer B) from 1 to 12, do (Actions)
- Loop - Actions
- Events
in conjunction with
Trigger:
- Create
- Events
- Time - Elapsed game time is 5.00 seconds
- Conditions
- Actions
- Unit - Create 1 (Unit-type of (Load 1 of 1 in HashTable)) for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
- Events
Or does the action of removing the unit after it was saved null the save?