- Joined
- May 26, 2012
- Messages
- 76
Hello!
I am trying to make a simple dialogue system.
I want a dialogiue to start when:
1)UnitA is given an order to go to UnitB (Right Click)
2)UnitA should be close to UnitB (Distance <=256).
Here's what I come up with so far:
I cannot find a condition which compares the distance between 2 units.
I also tried a "Unit within range" Event but it only allows me to choose between Pre-placed units and not my references.
Am I missing something obvious?
I am trying to make a simple dialogue system.
I want a dialogiue to start when:
1)UnitA is given an order to go to UnitB (Right Click)
2)UnitA should be close to UnitB (Distance <=256).
Here's what I come up with so far:
UniversalDialogueStarter
Events
Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object
Conditions
(Ordered unit) Equal to aaPlayerRef
Or - Any (Conditions) are true
Conditions
(Target unit of issued order) Equal to BuddyRef
(Target unit of issued order) Equal to MorrisRef
Actions
Game - Display to (All players) the text: TEST01-OBJECT
Game - Display to (All players) the text: (Name of (Target unit of issued order))
I cannot find a condition which compares the distance between 2 units.
I also tried a "Unit within range" Event but it only allows me to choose between Pre-placed units and not my references.
Am I missing something obvious?