Nets

Mind

New Member
Reaction score
7
In the level I'm making, there are some (Blood) Elves imprisoned by Ice Trolls. (that says enough: my level is about Kael in Icecrown Glacier ;) )
The Blood Elves must be imprisoned by Troll Nets. If you rescue them, they should be freed from their nets.
I tried everything: I even searched in a book about Real Basic about variables. (yes, Real Basic also has variables)

First imprisoned unit
Event: Unit is rescued
Action: Delete (variable) ensnare
(variable value ensnaretarget = last created special effect)

("Woohoo! It's working!")

Second imprisoning unit
Event: Unit is rescued
Action: Delete (variable) ensnare
(variable value ensnaretarget = last created special effect)

("Damn, it's not working.")

Of course, there can only be one "last created special effect"
 
So just make it not the "last created effect". I'm sure there's a variable here somewhere that's made to do that, they do it all the time in the blizzard campaigns...
 
I can't stipulate the initial value. :(

Variable type - Special effect
Initial Value - None (unchangeable)
Set Variable - ensnaretarget = last created special effect
 
you must be creating the ensnare nets at some point in the game right? that's when you should be assigning the sfx into variables. And make ensnaretarget an sfx variable array, so you can assign all the net sfx's into the variable.
 
Uh…_Assigning an sfx array in a special effect variable? Err, what are arrays for anyway? I don't get it, I'm to dump.
 
arrays are very similar to normal variables, its just that you can store multiple things in them.

e.g. for an integer array you might do this:

set SomeInteger[0] = 1
set SomeInteger[1] = 2
set SomeInteger[2] = 5
set SomeInteger[3] = 2
set SomeInteger[6] = 82

special effects arrays are no different:

special effect - create <ensnarenet.mdl> on <some troll>
ensnaretarget[0] = last created special effect
special effect - create <ensnarenet.mdl> on <some other troll>
ensnaretarget[1] = last created special effect



and when it comes time to destroy them:

special effect - destroy ensnaretarget[0]
special effect - destroy ensnaretarget[1]
 
Omg, I suck… I had so many difficulties and work to try to solve this problem, and now it suddenly occurs to me that a cage is 10 times easier and perhaps better.

Still, thank you very much for this information. This solved the greatest problem I had with variables… Perhaps the only one.
 
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