problem - random unit of unit type

  • Thread starter Thread starter J.R.
  • Start date Start date
J

J.R.

Guest
Hello everybody, first of all, compliments on the forums, they've been a great help to me since i started playing with the editor. I'll keep this short and to the point;

I have tried to make a trigger that, whenever player1 loses a unit of unit-type, kills a player3's unit of the same unit type. So, i have this trigger:

Event:
- a unit owned by player1 dies

Condition:
-unit type of dying unit equal to (sorcerres)

-Action
-kill random unit from (units owned by player3) of type sorcerres

(of course, each unit type has its own trigger :)

Now my problem is, that player3's units sometimes die, and sometimes do not. For example, players 1 and 3 start with 5 units. When all five of player1 die, sometimes player3 still has half of them left, and sometimes all of them die.

So, basically, my question would be; is there any chance at all that "random unit from units-of-type" returns as blank, which would explain the problem, or is it something completely different that i haven't thought about?


Any help would be greatly appreciated. Greetings, JR
 
It's...random. :rolleyes:


I believe you can pick all of the units of one unit-type and kill them. Trying to remember the exact action though.
 
Maybe i was unclear... i'm trying very hard not to kill all units of that type... if player1 loses X units of that kind, player3 should also lose X units of that type..
so, by my logic, if i pick all units of unit type for player3 and kill a random one, one of them should die. Cause a random unit of five units should be one of those units...right?
or am i very wrong and can a random unit of those five units be no unit?

(i'm starting to confuse myself now...)
 
I don't see what's wrong wih it. Seems like it would work. Wha exactly is happening when you try to use it? Sorry if my typing sucks but I'm on my laptop right now and it's hard o type with it on your lap when oyur on your bed hehe.
 
Heheh. Maybe that's why my older sister's typing sucks...:D

Unit Group - Pick every unit in (Units owned by Player 3 (Teal) of type Sorceress) and do (Unit - Kill (Random unit from (Random 1 units from (Units currently selected by Player 3 (Teal)))))

Try that. In case you know why I'm editing, it's because I'm trying to determine if it'll work or not. This one should.
 
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

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top