- Joined
- Jul 17, 2012
- Messages
- 26
I'm trying to figure out how to allow units to move based on available moves from 2 die that have been rolled. The dice integers have been saved as global variables and each space has been assigned a region. Unit in each region are automatically added to unit groups.I want to do this without having to program in every possible move (from every possible position) using if-then statements.
I was thinking something like: Trigger: Unit is ordered to move Condition: Action: -Unit - Order (Closest unit to point in unit group) to (move targeting point)
I can't figure out how to add conditions to block spaces that have 2 or more enemy units in them. I also need to work out how to I guess compare some of the variables. for example [If triggering unit is in unit group 1 and the dice are 3 and 5 only allow units in unit group one to move to spaces 4 and/or 6]
I was thinking something like: Trigger: Unit is ordered to move Condition: Action: -Unit - Order (Closest unit to point in unit group) to (move targeting point)
I can't figure out how to add conditions to block spaces that have 2 or more enemy units in them. I also need to work out how to I guess compare some of the variables. for example [If triggering unit is in unit group 1 and the dice are 3 and 5 only allow units in unit group one to move to spaces 4 and/or 6]