Trigger help!

  • Thread starter Thread starter currahee
  • Start date Start date
C

currahee

Guest
I'm curious on how to make a trigger for this: In the map Battle for Middle Earth there's a trigger in which a city can be attacked if it's not owned by the player and if the building is not owned by the user's team.
After it's been destroyed the building appears again and this time it belongs to the person who destroyed the building.
Any ideas on how to do this? :nuts:
Thanks in Advance
 
use the event unit dies, or specific unit dies, and have it check if the unit is the building you want, then have it replace it with a building of the same type for the owner of the killing unit.
 
You may want to give this a try:

Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A structure) Equal to True
        (Killing unit) Not equal to No unit
    Actions
        Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at (Position of (Dying unit)) facing Default building facing degrees
 
Try something like this
Code:
Events
    A unit dies
Conditions
    Type of Dying unit equal to (Building)
    (Killing unit) not equal to (No unit)
    (Owner of Dying unit) is an enemy of (Owner of Killing unit)
Actions
    Create 1 (Type of Dying unit) at (Position of Dying unit) for (Owner of Killing unit)
 
Thanks but I got another problem: When a new building is created I assume it goes by a new unit name. Because of this the unit dies, respawns under a new name and if it's taken over nothing else spawns.
How would I come over that? Would I just have to use regions then?
 
well if you're using the specific unit to do stuff, you can instead use unit variables, and set the new created one to be the unit variable.
 
I thought they would too- but it seems like it's only working once then it stops working :banghead:
 
Maybe did you use "Specific unit" instead of "Generic unit" events??
Post your code, this way we can check the bugs for you.
 
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