HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I set up moving a hero via arrow keys?

07-12-2003, 06:45 PM#1
Sardius
I found the event, key board event. But I've looked over actions and I can't seem to find the coorispounding action.
Is it also possible to make your character swing once and then stop with the press of a key?
07-12-2003, 08:57 PM#2
Norbo
Yes, there are many ways to do it, best looking (and thusly most crippling for the Unit- issue order delay) is to use loops to 'Issue order to move' to a point with polar offset (facing of unit, 100)

But I warn you, so far many people have found that the Unit- Issue Order that is so centric to every part of it lags.

Badly.
07-12-2003, 10:25 PM#3
Raptor--
Quote:
But I warn you, so far many people have found that the Unit- Issue Order that is so centric to every part of it lags.

executed right, the actual moving doesn't lag at all - i find the part that lags is war3 responding to the keyboard event... it is very slow
07-12-2003, 10:35 PM#4
Milkman
Well... since i couldn't really figure out what the previous post meant i post this: The easiest way would be to use 3 variabels X, Y and EndDest

Actions when for example left arrow key is being moved..
Set Y= (Y of Postition of Unit in Play(a variable, that u can use if you have several units.. just make a trigger and when the player selects a unit it' becomes the Unit in Play))

Set EndDest= (EndDest of Postiotion of Unit i play)
set X= (X of EndDest) In this case, X and Y in the second part of the action not being a variable...
Set X= (x - 300)
Set EndDest = (Point,X,Y) use the consersion coordinates to point

make unit move to EndDest...


TADA!!

You can also use items and remove the and add them to keep track of it... Like, when u buy a Moveright from a shop...(with another unit) the other unit moves and then u remove the item so you know WHen to move...

SHIT!! i forgot... dont mind that last bit... forgot it's TFT now.. =O) just use arrow movement...
07-13-2003, 01:02 AM#5
weaaddar
hes saying its not the events that lags its the unit-order

Heres a quick way to findout if its the event
Try this
Event Player presses/holds Up key (I've never used the event so I think it works like this)
Action
Game Display Text Message: HITTING UP KEY!

if the message apears then ding ding no lag here.
If it doesn't well we now know where the lag is
07-13-2003, 06:24 AM#6
Silenkiller
Quote:
Originally posted by Milkman

Set EndDest= (EndDest of Postiotion of Unit i play)
set X= (X of EndDest) In this case, X and Y in the second part of the action not being a variable...
Set X= (x - 300)
Set EndDest = (Point,X,Y) use the consersion coordinates to point

make unit move to EndDest...



Could you PLEASE make that a bit more clear? Im totally lost here.. u set x to two different things?! WTF!?!?!!? :////

What actions are used here.. i've been trying to figure this out for 2 hours now.. im SO lost..
07-13-2003, 12:33 PM#7
COOLer
Holding key dose not work! You must set var when it is realsed! to tell other trigger to stop
07-13-2003, 02:26 PM#8
LegolasArcher
Quote:
Set EndDest= (EndDest of Postiotion of Unit i play)
set X= (X of EndDest) In this case, X and Y in the second part of the action not being a variable...
Set X= (x - 300)
Set EndDest = (Point,X,Y) use the consersion coordinates to point

make unit move to EndDest...

he did not define "X" twice. He subtracted 300 from the value of "X" and set that as "X"
07-13-2003, 02:27 PM#9
LegolasArcher
Quote:
Set EndDest= (EndDest of Postiotion of Unit i play)
set X= (X of EndDest) In this case, X and Y in the second part of the action not being a variable...
Set X= (x - 300)
Set EndDest = (Point,X,Y) use the consersion coordinates to point

make unit move to EndDest...

he did not define "X" twice. He subtracted 300 from the value of "X" and set that as "X" So the "new 'X'" is 300 less than the origional.
:D :ggani:
07-13-2003, 02:48 PM#10
COOLer
the majo problem with moving the unit like that it can get stuck in unpassable terren and can go there walls that would make it not very usefull in rpgs.
07-13-2003, 03:56 PM#11
Norbo
I know it was the Unit Order by the way. I had debug messages on every single action... They executed instantly.

Even moving a unit normally by right clicking on some terrain lagged.

It may have something to do with the loops I used to turn and move in combinations, thus speeding up the lag generation..