Using Triggers in general

  • Thread starter Thread starter matt
  • Start date Start date
M

matt

Guest
I'm trying to learn how to do triggers and I am still not learned even though I looked through the trigger faq. Im trying to create a unit that when selected would say a comment. So far I have made a new trigger. Next I made it so that on the event of map iniazilation that it would say something. Then i was confused with what do with the condition. So thats all i am up to.. Can someone please help me with the next steps?
 
Change the map initialization event to "A Player selects a unit" for the event and condition it to respond only to the selected unit you want to say stuff
 
Code:
Untitled Trigger 001
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
        (Triggering unit) Equal to (X unit)
    Actions
        Cinematic - Turn cinematic mode On for (All players)
        Cinematic - Disable user control for (All players)
        Cinematic - Turn subtitle display override On
        Cinematic - Clear the screen of text messages for (All players)
        Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 20.00 seconds
        Cinematic - Send transmission to (All players) from No unit named Matt: Play No sound and display The Text  .  Modify duration: Add 2.00 seconds and Wait
        Cinematic - Turn cinematic mode Off for (All players)
        Cinematic - Enable user control for (All players)
        Cinematic - Turn subtitle display override Off
        Cinematic - Turn off letterbox mode (show interface) for (All players): fade in over 2.00 seconds

An example..
 
FAQ or Trigger Tutorial?

Krakka's trigger is madness. I don't know what it achieves (nothing).

Try the reall easy ones like:

Event: Map Initialisation
Conditions: Ignore this line
Action: Create {1} {Footmen} for player {1 - Red}at {Center of{Playable Map Area}}

Or try any action and see if you can make it work. Think of it as an adventure. I would make the help more helpful - but I am on the other side of the world to my computer with WIII on it - it is in Australia, and I am in England.

Then, once you understand the extreme basics, move up to what you are trying to do.

Just in case you want to skip the learning process, experement with expanding:

It sounds like you need two triggers -
One to create the unit
One to make the unit speak

Make a Unit
Code:
Event: Map Initialisation
Condition: --
Action: Create {1} {Footmen} for {Player 1 - Red} at {Center of{Playable Map Area}}

Make the Cinimatic
Code:
Event: Player - {Player 1 - Red} Selects a unit
Conditions: --
Action: Cinematic - Turn cinematic mode On for (All players)
           Cinematic - Send transmission to {All players} from {No unit} named
           {Matt}: Play {No sound} and display {Testing? Can I talk?}.  Modify
           duration: Add {2.00} seconds and {Wait}
          Cinematic - Turn cinematic mode Off for (All players)

Yes, I did copy and refine Krakka's Mumbo Jumbo code. Much of that code is redundant and self contradictory.

My sincere apologies to Krakka.
Sorry Krakka.
 
It was big becuz to start the cinematic stuff...and i messed up the condition...edited it.. :D
 
When you turn Cinimatic mode onm it automatically disables unit control. When Cini mode is on you do not need to turn suvtitle display overide on, clear the screen of text, or turn on letterbox mode.
This is overkill.
Just use Cini mode.
Turn it on,
Turn it off,
Apply interesting cameras.
That is all you need.
Honest.

Many apologies to Krakka. Thankyou for editing the condition.
 
I suggest just start making lil triggers and see what happens when you test the game :P Get used to the thing.

Here is some wisdum. (I know I mispelled that on purpose)

Event (This says what it takes to activate this trigger)

Condition (This says these things have to be true for the trigger to run (can be left blank and it will just run the trigger when the event is triggered))

Action (This is what happens after the event is fired off and the condition is checked)


That should do ya for a while :P Good luck read the tuts on the left.
 
Matt - triggers can be difficult to understand if it's your first time using them, but a really good way to learn how to use triggers is to open up another map and read the triggers that it has.

For example to make someone speak, open up an RPG and look for the quest triggers, because many RPGs have text appear on screen when you approach someone or click on someone.

To learn how to use triggers in general, take a map that you play enough to know really well and learn the map triggers. Then try to duplicate the triggers on a different map. Once you've looked at enough maps you'll get the hang of using triggers :D
 
funny you say that becuz I actually started being good at triggers when I figured out you didn't typ the triggers out but you clickd on event/condition/action and a window came up and you chose from it.. lol:P

I always have wierd stories to tell :D

Your can only be good with triggers if your are logic... making triggers is basicly being logic...
 
That's true, but you can also be good at triggers if you're a programmer. :P
And some events/conditions/actions can be in really wierd places.
 
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