Wait Condition Wont Work!

TPOX

New Member
Reaction score
10
I slimmed down the trigger to basic. When it does its thing and does wait until unit is 0 height then keep going but instead it just blows on through and does not wait at all.

What it is doing below is when i cast an ability it creates a dummy sets his height to heros height then makes height go down to 0 by 200 so its basically 2 seconds depends on how high u are which is why i can not have a wait time condition. After the condition it does its thing damaging area ect.

Code:
Destruction
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Destruction 
    Actions
        Set CastingUnit_Destruction = (Casting unit)
        Set TargetPoint = (Target point of ability being cast)
        Unit - Create 1 Destruction Dummy for (Owner of CastingUnit_Destruction) at (Position of CastingUnit_Destruction) facing TargetPoint
        Set DummyUnit_Destruction = (Last created unit)
        Animation - Change DummyUnit_Destruction flying height to (Current flying height of CastingUnit_Destruction) at 0.00
        Set HeightDistance = (Integer((Current flying height of DummyUnit_Destruction)))
        Animation - Change DummyUnit_Destruction flying height to 0.00 at 200.00
        Wait until ((Integer((Current flying height of DummyUnit_Destruction))) Equal to 0), checking every 1.00 seconds
        Unit - Kill DummyUnit_Destruction
        Unit Group - Pick every unit in (Units within (300.00 x (Real((Level of Destruction  for CastingUnit_Destruction)))) of TargetPoint matching (((Matching unit) belongs to an enemy of (Owner of CastingUnit_Destruction)) Equal to True)) and do (Unit - Order CastingUnit_Destruction to damage (Picked unit) for ((Real(HeightDistance)) x ((0.50 x (Real((Level of Destruction  for CastingUnit_Destruction)))) + 0.50)) using attack type Normal and damage type Universal.)
        Set CastingUnit_Destruction = No unit
        Set TargetPoint = (Target point of ability being cast)
        Set DummyUnit_Destruction = No unit
        Set HeightDistance = 0
 
try less than or = 0
 
;/ nope still wont work

theres gotta be something im doing wrong with this

Code:
Wait until ((Integer((Current flying height of DummyUnit_Destruction))) Less than or equal to 0), checking every 1.00 seconds
 
Y is the height change rate at 0? does the unit even go in the air?
 
k...
the dummy unit is created and its height is set to the height the caster is
then the dummy unit is set to 0 height at 200 so it looks like it is falling overtime which it is and once it hits the ground at 0 it is supposed to continue the rest of the actions.

as for u asked why the rate is 0, its because it will immediately take dummy to the height of casting unit. Even if i change it to 1000 rate, the wait condition still wont work.

EDIT- Yes the dummy unit goes into the air and it DOES look like its falling and it falls from hero to the ground correctly but i have to disable kill unit and the rest of the actions just blow on through so like right when i cast it, it does the damage instead of waiting till dummys height is 0.
 
Y dont you just remove it while its in the air? The Dummy Dest.
 
do what? lol

the dummy unit is created and then one animation sets it to the height of the caster
then it creates a variable for that height for later use
then it does another animation making the dummy unit go to 0 height
then the condition that wont work
 
Y dont you give it the ability Stone form then when its done casting it you kill it.
 
what are you talking about lol
everything works except THAT wait condition
if i set a timed wait it works fine but the timing is off because of the different height u can be while casting the ability.

my problem is the wait condition everything else works fine ;/
 
> the timing is off because of the different height

wait = (height / 100.00) + 1 seconds


Have you tried something higher than 0? Like, for example, 10?

Or, replace that wait with something like:
for each integer A from 1 to 10
game - display current height
wait 0.5

To see what's actually going on with that unit.
 
;/ why wont the wait condition work?
I already checked out the dummy unit and it is falling correctly and u can even see it fall and it goes up to current hero height immediately then to 0 at 200.

I dont think a wait (timed seconds) would work would it? It wouldnt be exact.

Correct me if im wrong tho, i just thought a wait for condition would be more exact and correct.
 
Wait ((Real(HeightDistance)) / 200.00) seconds

that works dunno how exact it is but i figured since the rate is 200 that it falls wait the height it was divided by the rate it is falling = the time it takes to hit 0.
 
I think that the unit is instantly considered to be at 0 height even though the animation of it is still playing. That's just a guess, though.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top