HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Keyboard events help

11-22-2003, 03:02 AM#1
zwing
Is there a way make a unit move instantly to center of "region" with just a press of an arrow key. There would be alot of this triggers because I want it so that i move to a different region if I was in another region.
Heres what i want:
EXAMPLE TRIGGER
Event -
Player 1 Presses "Uparrow" Key
Conditions -
Selected unit is Peasant
Selected unit is in region "X"
Actions -
Move selected unit instantly to center of region "Y" facing "Z"

X, Y, Z regions
W W W
W Z W
W Y W
W X W
W W W
Key:
X, Y, Z = Regions
W = Boundaries
If anyone knows the exact TFT World Editor Trigger for this command. Please reply.
LOL I'll even give points to the person who gives me with the correct answer and it is user-friendly to understand. Thanks
NOTE: There is gonna be alot of Triggers like this, so X, Y, & Z are infinite variables.
Please don't say look for it yourself....
If this question has been already answered in the forums, could you add the link to that thread
11-22-2003, 02:38 PM#2
weaaddar
The function is Unit-Move unit instantly
You have it basically a 100% correct...
11-22-2003, 04:04 PM#3
zwing
really, I tried doing the same trigger, but got no result

maybe I have to use variable, dont know what to put it in for them.
11-22-2003, 08:03 PM#4
Vexorian
Quote:
Originally posted by weaaddar
The function is Unit-Move unit instantly
You have it basically a 100% correct...


erhm, it isnt because selected unit is an event response trigger call

Event -
Player 1 Presses "Uparrow" Key

Conditions -
Integer comparision: Count units in unit group (units selected by player 1) equal to 0


Actions -
Move (Random Unit from units selected by player 1) instantly to center of region "Y" facing "Z"