A few Easy Trigger Questions.

Epicgamers

New Member
Reaction score
5
Hello,im The Epic =] and i need sum help with triggers.

1: You go onto a ship, a dialog appears.
Says:Travel to Exoria and Says: No,Don't Travel.
If u click No,Don't travel nothing happens
If u click Travel to Exoria,The Boat Ships to Exoria{With you in it}

2.How to make a Gate open when a Friendly Unit is next to it?

Those are triggers, can someone make please.
Thanks =]

Epic one.
 

k0sA

New Member
Reaction score
9
These are actually pretty easy to create, just have an open mind ;)

1.
Code:
Enter
    Events
        Unit - A unit enters No region
    Conditions
        (Owner of (Entering unit)) Equal to (==) Player 1 (Red)
    Actions
        Dialog - Create a dialog button for Dialog labelled Travel
        Set DialogBtn1 = (Last created dialog Button)
        Dialog - Create a dialog button for Dialog labelled Don't Travel
        Set DialogBtn2 = (Last created dialog Button)
        Dialog - Show Dialog for Player 1 (Red)

Code:
Click
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
    Actions
         Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to (==) DialogBtn1
            Then - Actions
                -------- Your travel triggers --------
            Else - Actions
         Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to (==) DialogBtn2
            Then - Actions
                -------- Your don't travel triggers --------
            Else - Actions

2. Coming later..
 

chopperpope

New Member
Reaction score
12
2.How to make a Gate open when a Friendly Unit is next to it?

.

event:
a units enters (the region around your gate).

condiction:
owner of (triggering unit) is an ally of player (owner of base)
if (number of units in (units matching (owner of (matching unit) is an enemy of (owner of base)) equal to true) greater than 0).
action.
open (gate u want to open)

---------------------
event:
a leaves enters (the region around your gate).

condiction:
owner of (triggering unit) is an ally of player (owner of base)
action.
close (gate u want to close)

----------------------------
event:
a units enters (the region around your gate).

condiction:
owner of (triggering unit) is an enemy of player (owner of base)
action.
close (gate u want not to open)
 

k0sA

New Member
Reaction score
9
Condition, not condiction ;) And you should explain what each of these do because it's a bit unclear.
 

Tythoid

New Member
Reaction score
23
Just had a look at k0sA's trigger for question 1. This trigger will work better for 3 reasons.
More then one person can use it.
If you reuse K0sA's it will bug.
If your using K0sA's when someone else enters the region it will bug.
Code:
MAKE DIALOG
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Dialog - Clear ShipDialog
        Dialog - Change the title of ShipDialog to Boat to Exoria
        Dialog - Create a dialog button for ShipDialog labelled Travel to Exoria
        Set ShipdialogbuttonyesTravel = (Last created dialog Button)
        Dialog - Create a dialog button for ShipDialog labelled No,Don't Travel

Code:
Show dialog
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
    Actions
        Dialog - Show ShipDialog for (Owner of (Triggering unit))

Code:
transport
    Events
        Dialog - A dialog button is clicked for ShipDialog
    Conditions
        (Clicked dialog button) Equal to ShipdialogbuttonyesTravel
    Actions add you transport action here
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top