How you store Units in variable?

  • Thread starter Thread starter The bezerker
  • Start date Start date
T

The bezerker

Guest
I'm making my new map village builder alliance i was wondering how you make a certain type of trigger or variable that if Alliance my King dies, the game ends? I tried unit specific events on event, clicked on unit underline, and on the varible section it said "no variable has been generated"... so i did unit select but doesn't help. How the hell you generate unit on the variable please i need help! I can figure out what to do.... any one :confused:
 
Under Specific Unit Event, and whatever the unit field is, you should be able to click a button (I can't remember what it says.) and then it will allow you to select a unit from the map. Is this not working? Do you have the King unit on the map or is it trained/created with a trigger later? It will have to be on the map to selectable. If it is not on the map then you can store the unit in a variable using a trigger for later use in other triggers.
 
Make a trigger

Untitled Trigger 001
Events
Map initialization
Conditions
Actions
Set King = Mind Boggler 0016 <gen>


In the actions tab - I used Set Variable

It will start as

Set Value = Value
Click on the first "Value"
and click on Edit Variables...

There you will see a new small window with some buttons on the top...

Click on New Variable or Press ctrl+n

Okay now there will be 2 blanks
and it will sorta look like this

Variable name ______________
Variable type ______________
[ ] array Size [ ]


Okay now thats the basic sketch~
so, create a variable name for the unit/building/integer or whatever you need

so lets say King...

So now you have a variable name.

Variable name King___________
Variable type ______________
[ ] array Size [ ]

Variable type is for what type the variable should be...
since the king is a Unit... you just look for the type Unit...

Voila... the other two are more complicated but theres a tutorial
for that by conan... so you just have to follow these steps...

Now for the last part... to set the 2nd portion of the variable...
all you need to do is click on the value and select the unit...
or... you could use triggers like,

Unit - Create 1 footman for player bla bla bla

Then

Set footie = Last created unit...

Hope this helps...
 
Thanks, but how do i find the tuturial by conan?

thanks for your help but Can you tell me how to find the tuturial by conan? thanks :) :)
 
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
  • 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 The Helper:
    Also, anyone who is reading this and is sad - don't be, turn off the Internet, step away from the box - enjoy your life - there is so much more out there for you than there is here for you.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top