• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

ARROW MOVEMENT SYSTEM v1.3 [updated]

Move your selected units with the Up, Down, Left, and Right arrow keys.

i may add more options to this system over a few days... you know.. with school n' all.

v1.1 system was added to Hive.
v1.2 removed polar offset bug.
v1.3 added reverse.

Keywords:
arrow key, move, move system, system, movement, movement system, arrow move, arrow movement, arrow key move, arrow key movement, arrow key move system
Contents

ARROW MOVEMENT (Map)

Reviews
20:23, 29th Oct 2009 The_Reborn_Devil: Hmmm. We're getting a lot of these systems. Anyway, it seems to be working correctly and the triggering looks ok. It would be nice if it had something that was unique for this system though as this is...

Moderator

M

Moderator

20:23, 29th Oct 2009
The_Reborn_Devil:

Hmmm. We're getting a lot of these systems.
Anyway, it seems to be working correctly and the triggering looks ok.
It would be nice if it had something that was unique for this system though as this is pretty similar to other systems I've seen.

Status: Approved
Rating: Useful [3/5]

Note to every scripter/triggerer out there: If I see more of these systems they better have something unique with them or else they will get rejected or given the rating "Lacking" or "Unacceptable". The Hive already got A LOT of these systems.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
It leaks...

  • Set MovePosition = ((Position of OrderedUnit[(Player number of (Triggering player))]) offset by...
->

  • Set MovePosition1 = ((Position of OrderedUnit[(Player number of (Triggering player))])
  • Set MovePosition2 = MovePosition1 offset by...
  • ...
  • Custom Script: Call RemoveLocation(udg_MovePosition1)
  • Custom Script: Call RemoveLocation(udg_MovePosition2)
 
Level 6
Joined
Dec 23, 2008
Messages
82
Time - CheckTimer[1] expires

Set MovePosition = (Position of OrderedUnit[(Player number of (Triggering player))])
Set ActualLocation = (MovePosition offset by (0.00, ((Real(OrderedDistance)) x -1.00)))
Unit - Order OrderedUnit[(Player number of (Triggering player))] to Move To ActualLocation
Custom script: call RemoveLocation(udg_MovePosition)
Custom script: call RemoveLocation(udg_ActualLocation)

how do i fix this when i need the "ActualLocation" variable to = MovePosition at a certain distance towards an angle, without using polar offsets. I need this trigger fixed because it is the main trigger that gives a purpose to this system.
 
Level 8
Joined
Jun 18, 2007
Messages
214
Time - CheckTimer[1] expires

Set MovePosition = (Position of OrderedUnit[(Player number of (Triggering player))])
Set ActualLocation = (MovePosition offset by (0.00, ((Real(OrderedDistance)) x -1.00)))
Unit - Order OrderedUnit[(Player number of (Triggering player))] to Move To ActualLocation
Custom script: call RemoveLocation(udg_MovePosition)
Custom script: call RemoveLocation(udg_ActualLocation)

how do i fix this when i need the "ActualLocation" variable to = MovePosition at a certain distance towards an angle, without using polar offsets. I need this trigger fixed because it is the main trigger that gives a purpose to this system.

Facepalm! A joke :p. Polar offset is a mathematical equation (let's call it that way lol). Polar offset sets your position through the use Radians, Angles, Square Root, etc. That involves calculation of Angle Between Points, Distance, etc., etc. Since you're not using JASS, you can use Polar Offset freely. What Maker meant is that you need to:
  • Set Temp_Loc_2 = (Temp_Loc_1 offset by 100.00 towards 20.00 degrees)
And you remove Temp_Loc_1 and Temp_Loc_2. That 100.00, and 20.00 are real numbers, and it doesn't leak, and any Distance or Angle of points return real numbers, so they shouldn't leak as well. At least this is what I did when I was using GUI not sure if completely correct though :p. I'm sure maker will tell you more. And you can always check come tutorials. Good Luck!
 
Level 6
Joined
Dec 23, 2008
Messages
82
SPELL HAS BEEN UPDATED. I removed the Polar offset bug. and Anarchon, some people need to start with things others have done and recreate one for themselves to learn how to use gui properly, then they can start to learn the more advanced languages, thats what im doing. sry if you somehow take that offensively.... Do i have any more leaks in my system??

PLZ RATE
 
Last edited:
Level 1
Joined
Sep 5, 2008
Messages
7
great system although I will probobly never use it because I am well noob at triggers and would not want to skrew it up.. as I allready did XD

great for advanced users though! thanks for this great share keep it up
 
Level 3
Joined
Apr 3, 2009
Messages
80
Buggy :eek:

Okay, i downloaded it last night, and found out 1 MAJOR Bug,

Okay, i was playing around with this System in one of my maps, and when i accidentally clicked on another allied unit, i found out, i can control Allied units too. Infact i can control my allies movements! :O Mind Control xD

Please fix :D

I WILL EDIT IF IT HAPPENS AGAIN WHEN I PLAY LATER. :D
 
Last edited:
Level 12
Joined
Sep 4, 2007
Messages
407
since ur using custom script to clean leaks anyway, why don't you don't just use local variables? u can do it in custom script without converting the whole trigger to jass, and it helps gui users to get introduced to jass.
 
Level 3
Joined
Dec 17, 2008
Messages
37
May I ask how would I copy this? There are many trigger categories and I can't copy more than one at a time... do I have to copy each one, move back and copy the next?
 
Level 9
Joined
Apr 7, 2010
Messages
480
in reverse mode.
i pressed both left arrow key and down arrow key. but when i release the down arrow key. the unit goes to the left instead of to the right.
..
same goes for all the other keys
 
Top