Unit Dies-Add...

Arcane

You can change this now in User CP.
Reaction score
86
is it possible to make a trigger that does this: Everytime a unit owned by player X dies, another unit of the same type is created, but with X higher defense.

I know how to do the revival part, but how about the part where everytime he is revived, he gains some defense?
 
Of course.
Code:
unit dies higher def
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Footman
    Actions
        Unit - Create 1 FootmanDef for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees

The trick is, you'd need to create a new custom unit with higher defence. He'd be the one created.
But you may mean his defence go up each time he dies. If so please say.
-Husky
 
Yah, what I meant was that his defense goes up each time he dies, I was thinking about replacing the unit, but that would take a lot of time making, ten different forms for each unit.

The goal I'm trying to achieve is to make creeps get stronger as the game goes on, so the beginner area does not always have 100 hp creatures. But the more you kill them, the stronger they get.
 
I see, I did do a bit of reaserch into it, after I posted and personally I couldn't find anything.
But I did just have an idea: There's an ability/item (combined or something, it's under special in the abilties editor), it's called Armour Bonus +1 and there's a whole range of them.
You could try add that to them in a trigger, here's a very brief one:
Code:
Event:
Unit Dies
Condtions:
Unit Equal to *Unit*
Actions:
Give *unit* item.

Anyway very brief there you may need more than one trigger for it, I was looking for a trigger like it before like:
Code:
Events:
*Unit* Dies
Conditions:
Unit has died 5 times  <=== (does not exist but thats what i'd like, I think it would work for your thing too)
Actions:
Give *Armour Bonus +1* to *Unit*.

You know something like that, I will look more into it when I have time (if you don't figure it out or need help yourself)

Hope that helped in some way,
-Husky
 
Thanx for the ideas, I'll work out the rest by myself. :P :)
 
I would use an armour upgrade every time it died. Only problem is you can't undo upgrades if you wanted to make them weaker.
 
You can if you use WEU. There is an increase/decrease armor action under Advanced.
 
husky_003 said:
Anyway very brief there you may need more than one trigger for it, I was looking for a trigger like it before like:
Code:
Events:
*Unit* Dies
Conditions:
Unit has died 5 times  <=== (does not exist but thats what i'd like, I think it would work for your thing too)
Actions:
Give *Armour Bonus +1* to *Unit*.



-Husky



As far as the unit dies five times, I have an Idea for that.
Try this.
Code:
Trigger 01
Event: Unit Dies
Action: Turn on Trigger02

Trigger 02
Event: Unit Dies
Action: Turn on Trigger03

Trigger 03
Event: Unit dies
Action: Turn on Trigger04

Trigger 04
Event: Unit dies
Action: Turn on Trigger05

Trigger 05
Event: Unit dies
Action: Give *Armour Bonus +1* to *Unit*
That should work ^... You want triggers 02-05 to be initially off and after the unit dies five times the item will drop.
 
Nareg said:
As far as the unit dies five times, I have an Idea for that.
Try this.
Code:
Trigger 01
Event: Unit Dies
Action: Turn on Trigger02

Trigger 02
Event: Unit Dies
Action: Turn on Trigger03

Trigger 03
Event: Unit dies
Action: Turn on Trigger04

Trigger 04
Event: Unit dies
Action: Turn on Trigger05

Trigger 05
Event: Unit dies
Action: Give *Armour Bonus +1* to *Unit*
That should work ^... You want triggers 02-05 to be initially off and after the unit dies five times the item will drop.

another way to do it


Code:
trigger01
event: a unit dies.
condition: unit type(of dying unit) is equal to "unit type"
action: "integer" = "integer" + 1

trigger02
event: a unit dies.
condition: "integer" = 5
action: "give unit whatnot"
 
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.
  • 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

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top