Someone plz help FAST :-S

M0RBiD

New Member
Reaction score
0
hi all
its about 1 month that im searching for a good toturial about triggered moves that has a demo map . . .
and find nothing usefull . . . :banghead:
i just want to learn how to make an ability that moves your unit and also u can use some other spells while your unit is moving . ( sry for my poor engilish)
i know that there is some toturials but non of them has a demo map , so i didnt undestand any about them because my engilish is so bad ! .
what i want , is a demo map about what i said , an want it soon !!:thdown:
forgot to say that i need it in GUI !!
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Well, first you need to understand that all Sliding triggers make use of the instant move actions, which is Unit - Move unit (instantly). However, a sliding trigger moves the unit over a period of time, with a small distance moved per period.

So let's say you want a unit to travel 1000 distance. If you used Unit - Move unit (instantly) straight away to the end-point, it would basically look like a blink.

For a sliding effect, you make use of a periodic trigger.

Trigger:
  • Slide
    • Events
      • Time - Every 0.03 seconds of game time


You'll need to use a period of 0.04 or less to produce a smooth sliding effect. So now, you need to determine how fast you want the unit to slide. Set a variable Speed, which determines the distance traveled per second.

Trigger:
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Speed = 1000.0


Speed is set to 1000. This would mean that it would take 1 second for the unit to slide the total distance (1000). From this, you can make your sliding trigger.

Trigger:
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Speed = 1000.0
      • Set Distance = 1000.0


Trigger:
  • Slide
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
      • Distance is Greater than 0.00
    • Actions
      • Set SlideUnit = <some unit>
      • Set TempPoint = (Position of SlideUnit)
      • Set TempOffset = (TempPoint offset by (Speed x 0.03) towards SomeAngle)
      • Unit - Move SlideUnit instantly to TempOffset
      • Set Distance = (Distance - (Speed x 0.03))
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempOffset)


Basically, you're moving the unit 30 distance towards the SomeAngle every 0.03 seconds, which would amount up to 1000 distance per second.

Now, by Sliding a unit via the method shown above, it would cause the unit to be "paused", meaning it won't be able to carry out any given orders. This is where you need to use [ljass]SetUnitX()[/ljass] and [ljass]SetUnitY()[/ljass]. Basically, you replace the Unit - Move unit (instantly) with the 2 actions. Example:

Trigger:
  • Slide
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
      • Distance is Greater than 0.00
    • Actions
      • Set SlideUnit = <some unit>
      • Set TempPoint = (Position of SlideUnit)
      • Set TempOffset = (TempPoint offset by (Speed x 0.03) towards SomeAngle)
      • Set RealX = (X of TempOffset)
      • Set RealY = (Y of TempOffset)
      • Custom script: call SetUnitX(udg_RealX)
      • Custom script: call SetUnitY(udg_RealY)
      • Set Distance = (Distance - (Speed x 0.03))
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempOffset)


To make it MUI, you'd need a bit more work. But the sliding concept is the same.

Quoting one of Ayanami's replies to a similar question I posted earlier, except without the need for a test map. Evidently, you'll need some custom script but the rest should be easy to see from here.
 

M0RBiD

New Member
Reaction score
0
i just asked for a demo map !! :(
is it so hard that some one creat a demo map for me !! :banghead:
plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz :eek:
 

chobibo

Level 1 Crypt Lord
Reaction score
48
Not trying to annoy you, but making a slide trigger in GUI is time-consuming, so I guess no one's going to make you a slide trigger. Why not try reading the tutorials on slide triggers(I bet there are some here) and try doing them yourself.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Just for some peace, I'll do it. But I can't test it yet, so do point out any problems.
EDIT: I can test it now, and it seems fine. Though not much of a tutorial. Also my first test map. Hope you like it.
 

Attachments

  • Moving Triggers Test Map.w3x
    24.7 KB · Views: 178

HydraRancher

Truth begins in lies
Reaction score
197
i just asked for a demo map !! :(
is it so hard that some one creat a demo map for me !! :banghead:
plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz :eek:

This entire thread reminds me of when I first read the WE forums Rules, and Acehart's list of incorrect thread titles (they get funnier as you read down).

'i just asked for somebody to read the rules !! :(

is it so hard that some one read the rules for me !! :banghead:'


Not to be harsh. Although, that'd be incorrect to say that.



OT: (More OT) Did you even read the quoted post? Ayanami very explicitly explained the principles of sliding.
 

M0RBiD

New Member
Reaction score
0
Many thanks

im so sry for im so stupid !!:nuts:
many thanks to kaerfNomeKop and + rep
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Next time, don't be so demanding. You're making requests here, not orders. Also, try to give other people more than just "Someone plz help FAST :-S" to go on - we have no idea what you want from the thread title, and many would just ignore this thread altogether.

Getting back on-topic, I hope you find this more helpful than just people telling you what you should be doing.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top