Event: Unit comes into range...but no choice for in range of what!!

  • Thread starter Thread starter Ruination
  • Start date Start date
R

Ruination

Guest
I can't understand the usefulness of this event. It only allows you to choose pre-placed units for the range. Why is that?? Or I don't have a variable of the type required; in that case, what type do I need? I have a point and unit variable, what else could it be?

I need to play a one time effect on units when they enter into close range of a point or unit. The unit is on the point so either would work. It is a blackhole, and I just want units that are sucked into very close range to have a blink effect once, and then be hidden. Any guidance wise ones?

Just thought of something. In a perodic event, I could play the effect and then add them to a group. Thereafter, I will check if units in range are in the group, and if not, play the effect. That SHOULD make it so it plays once on each unit in range. Let's see...

No that will still play the effect every .04 sec for the first time I add it.

Thanks.
 
I'm not quite sure why, but all events only let you use pre-placed things. If you need the units not to be pre-placed then use the Trigger - Add Event action after you create them.
Code:
Unit- Create 1 Black Hole at . . .
Trigger - Add Event (Unit within range of (Last Created Unit))
 
Wow I've never seen this 'add event' before. I will try that first thing after work thanks Lumpy.
 
the events that you specify in your triggers are registered when your map is loaded. Events do not persistently update themselves in any shape or form, they only register once and that's it. Therefore telling an event to operate on a variable won't work because, when the event is registered, variables haven't been initialized yet - they exist but they just haven't been assigned values.

Therefore, if you were to have an event "unit comes in range of <variable>", when this event registers at map loading time, <variable> has no value and therefore the event would look like: "unit comes in range of <null>" - which of course won't do anything!

The aformentioned "Trigger - Add Event" is useful, because, at a certain point in time in your map when your variable DOES have a value, you can THEN register the trigger and use the variable. The trigger will register once only at that exact point in time, and if it uses your variable, it will take the value of the variable at that exact point in time. If the variable changes value from then on, the event will keep using the old value.
 
y dont you use the event that is 2 values under that one?

u know the one that says:event:a unit comes within range of(triggering unit)

thats easier
 
MooMooMan, that's the problem with his trigger. The Unit - A unit comes within range action only lets you use preplaced units, and his is placed in the trigger editor. The editor won't let you select anything under the Event response column. The Add Event thingy should work fine.
 
Okay do I need to set my variable to null afterward so that it will reset since you said it'll keep using the old value? Or, how do I manage to make this work multiple times since the blackhole will be placed at any location numerous times.

Ok I'm sorry but I have no idea how to use this. What trigger should I add this event to? How do I call this event which I created?

Thanks guys.
 
just add the trigger to the one that does the actions you want to happen when the unit enters range, and don't worry about reseting variables, it is entierably multi-instanceable.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top