Hi, I'm a novice editor and this is my first map. Thank you anyone who responds. I don't know computer coding and I can't figure out how to use a tracking system I downloaded on HIVE because its all in JASS and is overwhelming for a noob like me, but I might be able to figure out something that's 2-15 lines or something that is explained to me with isolated info. The name is "System [Track]" by PurgeandFire if you know how to use it and care to explain.
Where thread starts:
I would like to create a way to move units instantly by selecting them and second clicking where they go. Seemed simple, but I am missing an important Trigger Event to do so. If the unit is in Region <P1> (overall area), is a hero, and is selected by player 1, then allow player 1 to move unit to <X region> inside <P1> by second clicking.
Here is where the issue is: Player 1 uses Mouse Down event. There is only Mouse up, Mouse down, and Mouse move. Now mouse move would run past too many other regions on the grid of characters in <P1> and idk what Mouse up or Mouse down does, but clicking doesn't work.
Where thread starts:
I would like to create a way to move units instantly by selecting them and second clicking where they go. Seemed simple, but I am missing an important Trigger Event to do so. If the unit is in Region <P1> (overall area), is a hero, and is selected by player 1, then allow player 1 to move unit to <X region> inside <P1> by second clicking.
-
Moving Heroes in Starting Area P1
-
Events
- Player - Player 1 (Red) Selects a unit
- Conditions
-
Actions
- Set P1SelectedUnit = (Picked unit)
- Trigger - Turn on Moving Heroes part 2 <gen>
-
Events
Here is where the issue is: Player 1 uses Mouse Down event. There is only Mouse up, Mouse down, and Mouse move. Now mouse move would run past too many other regions on the grid of characters in <P1> and idk what Mouse up or Mouse down does, but clicking doesn't work.
-
Moving Heroes part 2
-
Events
- Player - Player 1 (Red) issues Mouse Down event
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Triggering unit) is A Hero) Equal to True) and (((Owner of (Picked unit)) Equal to Player 1 (Red)) and ((P1 <gen> contains (Picked unit)) Equal to True))
-
Then - Actions
- Unit - Move P1SelectedUnit instantly to (Mouse Position for Triggered Mouse Event), facing 270.00 degrees
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Moving Heroes in Starting Area P1
-
Events
- Player - Player 1 (Red) Selects a unit
- Conditions
-
Actions
- Set P1SelectedUnit = (Triggering Unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((P1SelectedUnit is A Hero) Equal to True) and (((Owner of P1SelectedUnit) Equal to Player 1 (Red)) and ((P1 <gen> contains P1SelectedUnit) Equal to True))
-
Then - Actions
- Unit - Set P1SelectedUnit movement speed to 1.00
- Trigger - Turn on Moving Heroes part 2 <gen>
- Trigger - Turn on Moving Heroes Part 3p1 <gen>
- Else - Actions
-
If - Conditions
-
Events
-
Moving Heroes part 2
-
Events
- Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point
- Conditions
-
Actions
- Set P1RearrangeLoc = (Target point of issued order)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((P1SelectedUnit is A Hero) Equal to True) and (((Owner of P1SelectedUnit) Equal to Player 1 (Red)) and ((P1 <gen> contains P1SelectedUnit) Equal to True))
- (Issued order) Equal to (Order(move))
-
Then - Actions
- Unit - Move P1SelectedUnit instantly to P1RearrangeLoc, facing 270.00 degrees
- Else - Actions
-
If - Conditions
-
Events
-
Moving Heroes Part 3p1
-
Events
- Player - Player 1 (Red) Deselects a unit
- Conditions
-
Actions
- -------- clear stuff, revert movement, etc --------
-
Events
Last edited: