Trigger help

  • Thread starter Thread starter AnaXyd
  • Start date Start date
A

AnaXyd

Guest
I have some hero taverns on my map with mass of heroes. I want to make a trigger that removes a hero in the tavern if a player picks one... If you understand me.. Im not so good in english...
 
Code:
Neutral Building - Remove Mountain King from (Triggering unit)
make an aktion and under Neutral Buildings.. :D
 
Well... what is the action and condition then?
I want it like the system on DotA...
 
neither did I.

Just have a trigger that runs when a unit is bought, check to ake sure it's a hero, and removes it from the building it was bought at.
 
i use this:
Events
Unit - A unit Sells a unit
Conditions

Actions
Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by ( Owner of ( Sold unit ) )
 
uh, not training/construction, he's talking about a neutral building here. just use the action -
Neutral building - remove (bought unit) from (selling unit)
 
i dont know what u talking about :
if u use Neutral building remove.
any other player wont be able to pick the same hero.
if u use the Player un.av .
any other player who didnt pick this hero will be able to pick the same:
and your action dont work>
 
DotA-Crime said:
i dont know what u talking about :
if u use Neutral building remove.
any other player wont be able to pick the same hero.

if u use the Player un.av .
any other player who didnt pick this hero will be able to pick the same:
and your action dont work>
Thats exactly what he wants.
 
Code:
Untitled Trigger 005      
Events          Unit - A unit Sells a unit      
Conditions      
Actions          Neutral Building - Remove (Unit-type of (Sold unit)) from Tavern 0015 <gen>
 
Hmm... it didnt work... i have something wrong in here:

event: Unit - A unit Sells a unit
cond: ((Sold unit) is A Hero) Equal to True
act: Neutral Building - Remove (Unit-type of (Sold unit)) from Hero Tavern 0031 <gen>
 
this trigger wont work:
use pick every player and do actions
put my actions:
Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by picked Player
 
sheep said:
Code:
Untitled Trigger 005      
Events          Unit - A unit Sells a unit      
Conditions      
Actions          Neutral Building - Remove (Unit-type of (Sold unit)) from Tavern 0015 <gen>

I must have a condition... Like that i tryed but it didnt work.. Maybe my hero isnt classified as a hero? If, where do i set that?
 
DotA-Crime said:
this trigger wont work:
use pick every player and do actions
put my actions:
Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by picked Player

Events
Unit - A unit Sells a unit
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
It is this you mean? If so it dont work either....
 
this way will make the sold unit removed for all players:
we are trying to get Players not units :)
Code:
test
    Events
        Unit - A unit Sells a unit
    Conditions
        ((Sold unit) is A Hero) Equal to True
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
 
Thanks! Now it works perfectly! Now it solved a huge work on another thing for me 2! I know this maybe is a very noobish way to do it...
Look, i tryed to make limit training for each player:

Events
Map initialization
Conditions
Actions
-------- Shadow Hunter -------- <--- One hero just 20 left..
Player - Limit training of Shadow Hunter to 1 for Player 2 (Blue)
Player - Limit training of Shadow Hunter to 1 for Player 3 (Teal)
Player - Limit training of Shadow Hunter to 1 for Player 4 (Purple)
Player - Limit training of Shadow Hunter to 1 for Player 5 (Yellow)
Player - Limit training of Shadow Hunter to 1 for Player 6 (Orange)
Player - Limit training of Shadow Hunter to 1 for Player 8 (Pink)
Player - Limit training of Shadow Hunter to 1 for Player 9 (Gray)
Player - Limit training of Shadow Hunter to 1 for Player 10 (Light Blue)
Player - Limit training of Shadow Hunter to 1 for Player 11 (Dark Green)
 
do that:
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Limit training of Shadow Hunter to 1 for Picked Player
//and use food cap and max for 2 players dont get the same unit :)
 
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.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top