- Joined
- Jan 26, 2020
- Messages
- 9
Hello,
Im a pretty noob in map creation, and not a developer.
I try to save a region in a hashtable.
But when i try "save region handle", i have to save 2 integer from another hashtable as a region. Same for location.
The closest i found is "save rect handle", but it doesnt work and i saw another post wich explain that there is multiple rect in a region and thats why its not possible.
Could someone help me?
Im a pretty noob in map creation, and not a developer.
I try to save a region in a hashtable.
-
fight
-
Events
- Map initialization
- Conditions
-
Actions
- Set VariableSet pos_hash = (Last created hashtable)
- Hashtable - Save (Center X of 1x1 <gen>) as 1 of 1 in pos_hash.
- Set VariableSet pos_x[1] = 1
- Set VariableSet pos_y[1] = 1
- Unit - Create 1 Fantassin for Player 1 (Red) at (Center of (Load pos_x[1] of pos_y[1] in pos_hash.)) facing Default building facing degrees
-
Events
But when i try "save region handle", i have to save 2 integer from another hashtable as a region. Same for location.
The closest i found is "save rect handle", but it doesnt work and i saw another post wich explain that there is multiple rect in a region and thats why its not possible.
Could someone help me?
Last edited: