Flying

A

Aqua_Dragon

Guest
I PLaced A Unit On The Map To Start With. And To Make Sure When It Was Revived That It Worked, I Made A Necropolis Which Made It. So I Did Yes to Both. But Have You EVer Tested This Trigger To SEe If It Works?
 

Sim

Forum Administrator
Staff member
Reaction score
534
Nah I don't test triggers although they usually work out.

But on this site we're supposed to give ideas of triggers not the full triggers themselves :p

Guess there is something buggy in the trigger. I'll reread it carefully, but since I'm not in your map I can't really look for bugs related to your map. Did you incorporate the right units in the training trigger activating the flying up and down ?

Could you also please repost the 3 triggers so I can read them altogether ?
 
A

Aqua_Dragon

Guest
Flying_Up(INITIALLY OFF)
Events
Time - Every 0.10 seconds of game-time
Conditions
Whatever
Actions
Set Flying_Up = ((Flying_Up) +5)
Unit Group - Pick every unit in (Units in (Entire map) matching (((Matching unit) has buff Flyer) Equal to True)) and do (Actions)
Loop - Actions
Animation - Change (Picked unit) flying height to (Flying_Up) at 200.00 <-- or whatever you need, just test it)
If (All Conditions) are true then do (Then Actions) else do (Else Actions
If - Conditions
Flying_Up Equal to 180
Then - Actions
Trigger - Turn Off (This Trigger)
Trigger - Turn On Flying_Down <gen>
Set Flying_Down = 180
Else - Actions
Do Nothing
-------------------------------------------------------------------------
(INITIALLY OFF)Flying_Down
Events
Time - Every 0.10 seconds of game-time
Conditions
Whatever
Actions
Set Flying_Down = ((Flying_Down) - 5)
Unit Group - Pick every unit in (Units in (Entire map) matching (((Matching unit) has buff Flyer) Equal to True)) and do (Actions)
Loop - Actions
Animation - Change (Picked unit) flying height to (Flying_Down) at 200.00 <-- or whatever you need, just test it)
If (All Conditions) are true then do (Then Actions) else do (Else Actions
If - Conditions
Flying_Up Equal to 20
Then - Actions
Trigger - Turn Off (This Trigger)
Trigger - Turn On Flying_Down <gen>
Set Flying_Up = 0
Else - Actions
Do Nothing
--------------------------------------------------------------------------
Flying_Time
Events
Unit - A unit enters (Entire Map)
Conditions
Or - Any Conditions are true
(Unit-Type of (Entering unit)) Equal to YOUR_FLYING_UNIT
(Unit-Type of (Entering unit)) Equal to ANOTHER_FLYING_ONE
(Unit-Type of (Entering unit)) Equal to ANOTHER_FLYING_ONE
Repeat for every unit-type needed...
Actions
Turn On Flying_Up <gen>
Turn Off (This Trigger)
--------------------------------------------------------------------------
Enable Flying
Events
Unit - A unit enters (Entire map)
Conditions
(Unit-Type of (Triggering unit)) Equal to Flying Mantis
Actions
Trigger - Turn on Flying up <gen>
--------------------------------------------------------------------------
There Are All The Triggers. Word PEr Word, (And Don't Ask If They Were Intially Off, Because They Were.
 

Sim

Forum Administrator
Staff member
Reaction score
534
CODE tags ! it's a mess !

--------------------------------------------------------------------------
Flying_Time
Events
Unit - A unit enters (Entire Map)
Conditions
Or - Any Conditions are true
(Unit-Type of (Entering unit)) Equal to YOUR_FLYING_UNIT
(Unit-Type of (Entering unit)) Equal to ANOTHER_FLYING_ONE
(Unit-Type of (Entering unit)) Equal to ANOTHER_FLYING_ONE
Repeat for every unit-type needed...
Actions
Turn On Flying_Up <gen>
Turn Off (This Trigger)
--------------------------------------------------------------------------
Enable Flying
Events
Unit - A unit enters (Entire map)
Conditions
(Unit-Type of (Triggering unit)) Equal to Flying Mantis
Actions
Trigger - Turn off (This Trigger)
Trigger - Turn on Flying up <gen>

These are the same triggers. Lol. Remove the top trigger (The one made by me). Also, add the bold action in the second trigger.
 

Sim

Forum Administrator
Staff member
Reaction score
534
Doesn't do anything either it is last or first. The trigger will still run but shut itself after the first time.

Also, don't post the trigger I wrote. Post the trigger that are in your map... The way you translated them... etc.
 

Sim

Forum Administrator
Staff member
Reaction score
534
My previous post wasn't a fix attempt... I just told you to delete the trigger as 2 triggers exactly the same is useless.

Like I told you in my edit: post the triggers in your map and not the ones I wrote myself. Also insert CODE tags.
 
A

Aqua_Dragon

Guest
Enable Flying
Events
Unit - A unit enters (Entire map)
Conditions
(Unit-Type of (Triggering unit)) Equal to Giant Mantis
Actions
Trigger - Turn on Giant Mantis Flying up <gen>
--------------------------------------------------------------------------
Giant Mantis Flying Up (Initially Off)
Events
Time - Every 0.10 seconds of game-time
Conditions
Actions
Set Flying_Up = ((Flying_Up) +5)
Unit Group - Pick every unit in (Units in (Entire map) matching (((Matching unit) has buff Flyer) Equal to True)) and do (Actions)
Loop - Actions
Animation - Change (Picked unit) flying height to (Flying_Up) at 200.00
If (All Conditions) are true then do (Then Actions) else do (Else Actions
If - Conditions
Flying_Up Equal to 180
Then - Actions
Trigger - Turn Off (This Trigger)
Trigger - Turn On Giant Mantis Flying Down <gen>
Set Flying_Down = 180
Else - Actions
Do Nothing
--------------------------------------------------------------------------
Giant Mantis Flying Down (Initially Off)
Events
Time - Every 0.10 seconds of game-time
Conditions
Whatever
Actions
Set Flying_Down = ((Flying_Down) - 5)
Unit Group - Pick every unit in (Units in (Entire map) matching (((Matching unit) has buff Flyer) Equal to True)) and do (Actions)
Loop - Actions
Animation - Change (Picked unit) flying height to (Flying_Down) at 200.00 <-- or whatever you need, just test it)
If (All Conditions) are true then do (Then Actions) else do (Else Actions
If - Conditions
Flying_Up Equal to 20
Then - Actions
Trigger - Turn Off (This Trigger)
Trigger - Turn On Giant Mantis Flying Up <gen>
Set Flying_Up = 0
Else - Actions
Do Nothing
--------------------------------------------------------------------------
I Wasn't Kidding When I Said I Copied It Word Per Word. This Isn't Just A Copy Paste
 
A

Aqua_Dragon

Guest
Aqua_Dragon said:
Enable Flying
Events
Unit - A unit enters (Entire map)
Conditions
(Unit-Type of (Triggering unit)) Equal to Giant Mantis
Actions
Trigger - Turn on Giant Mantis Flying up <gen>
--------------------------------------------------------------------------
Giant Mantis Flying Up (Initially Off)
Events
Time - Every 0.10 seconds of game-time
Conditions
Actions
Set Flying_Up = ((Flying_Up) +5)
Unit Group - Pick every unit in (Units in (Entire map) matching (((Matching unit) has buff Flyer) Equal to True)) and do (Actions)
Loop - Actions
Animation - Change (Picked unit) flying height to (Flying_Up) at 200.00
If (All Conditions) are true then do (Then Actions) else do (Else Actions
If - Conditions
Flying_Up Equal to 180
Then - Actions
Trigger - Turn Off (This Trigger)
Trigger - Turn On Giant Mantis Flying Down <gen>
Set Flying_Down = 180
Else - Actions
Do Nothing
--------------------------------------------------------------------------
Giant Mantis Flying Down (Initially Off)
Events
Time - Every 0.10 seconds of game-time
Conditions
Whatever
Actions
Set Flying_Down = ((Flying_Down) - 5)
Unit Group - Pick every unit in (Units in (Entire map) matching (((Matching unit) has buff Flyer) Equal to True)) and do (Actions)
Loop - Actions
Animation - Change (Picked unit) flying height to (Flying_Down) at 200.00 <-- or whatever you need, just test it)
If (All Conditions) are true then do (Then Actions) else do (Else Actions
If - Conditions
Flying_Up Equal to 20
Then - Actions
Trigger - Turn Off (This Trigger)
Trigger - Turn On Giant Mantis Flying Up <gen>
Set Flying_Up = 0
Else - Actions
Do Nothing
--------------------------------------------------------------------------
I Wasn't Kidding When I Said I Copied It Word Per Word. This Isn't Just A Copy Paste
(I Just Copied And Paste Because It Was Almost Like My Trigger)
 
A

Aqua_Dragon

Guest
(SOrry About Extra Posting And That Copy, I Just Can't Manage To Register For SOme Reason. And So I Can't Use Code)
 
A

Aqua_Dragon

Guest
(And Even If You Don't Need To Register To Use Code, I Don't Know How)
 

Sim

Forum Administrator
Staff member
Reaction score
534
> Flying_Up Equal to 20

This, located into the last trigger named Mantis Flying Down (or so)

Should be Flying_DOWN equal to 20

Also,

> Set Flying_Up = 0

should be Set Flying_Up = 20
 
A

Aqua_Dragon

Guest
You Placed Those Arrows And I Didn't Understand Since Your Sentences Were Seperated
 

Sim

Forum Administrator
Staff member
Reaction score
534
Arrows mean quotes.

Ok... you really need to read there, as my sentences were completely correct and I explained clearly what was to change using quotes.

Go into the last trigger and change within the If statement the following conditions :

Flying_Up Equal to 20

to the following :

Flying_Down Equal to 20

Also, in the same if-then-else statement there is an action that reads this :

Set Flying_Up = 0

Change this to 20, using the following :

Set Flying_Up = 20
 
A

Aqua_Dragon

Guest
:banghead: I'm Really GEtting Tired Of This NOt Working. I'm Making AN Arena Map. I DOn't Care Whether 2 People Have The Same. I DOn't Care If I Have To Change Anything. So Any Suggestions ON How We CAn MAke THis Easier? It's Already Been 57 Posts.
 

Sim

Forum Administrator
Staff member
Reaction score
534
Well the triggers work perfectly. The problem is located somewhere in the map.

Either your units don't have flying or the buff "Flyer" isn't applied to them or it simply doesn't exist.

OR (last try)

Change something in the trigger.

In this line : Unit Group - Pick every unit in (Units in (Entire map) matching (((Matching unit) has buff Flyer) Equal to True)) and do (Actions)

change where it says : "Matching unit) has buff Flyer"

to

"(Matching unit) Unit-type equal to Flying Mantis"

Do that in the two triggers.
 
A

Aqua_Dragon

Guest
Oh. I NEver Realized The Buff Didn't Get On THe Unit For Some Odd Reason. -_- I Really Hate Myself
 
A

Aqua_Dragon

Guest
HOORAY! IT WORKS! THANKS! (I'll Figure Out Why It Only Did Ir Once On My Own). But Just One More Question. How CAn I Make Him Go Up Alot Faster?
 
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