trigger help

Ruku-Chan

New Member
Reaction score
2
can some one help me make a trigger that will make a dialog buttom pop up at the gane start that will creat a unit in a region i chose?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Two triggers anre needed for this... one for creating the dialog and buttons and one for checking when a specific button is clicked and then creating the unit.

Code:
Untitled Trigger 001
    Events
        Time - Elapsed game time is 0.10 seconds
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Dialog - Show Dialog for (Picked player)
        Dialog - Change the title of Dialog to Create a unit.
        Dialog - Create a dialog button for Dialog labelled Create Footman!
        Set Dialog_Button[1] = (Last created dialog Button)

Code:
Untitled Trigger 002
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
    Actions
        Set Temp_Point = (Center of (Playable map area))
        Unit - Create 1 Footman for (Triggering player) at Temp_Point facing Default building facing degrees
        Custom script:   call RemoveLocation(udg_Temp_Point)
 

mgsfan18

New Member
Reaction score
1
Trigger:
  • Untitled Trigger 001
    • Events
    • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
    • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
    • Dialog - Show Dialog for (Picked player)
    • Dialog - Change the title of Dialog to Create a unit.
    • Dialog - Create a dialog button for Dialog labelled Create Footman!
    • Set Dialog_Button[1] = (Last created dialog Button)


Trigger:
  • Untitled Trigger 002
    • Events
    • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
    • Set Temp_Point = (Center of (Playable map area))
    • Unit - Create 1 Footman for (Triggering player) at Temp_Point facing Default building facing degrees
    • Custom script: call RemoveLocation(udg_Temp_Point)
 

Ruku-Chan

New Member
Reaction score
2
wait i dont think that will work cause i need to the footman to start in two difrent places dependsing on what button is picked,

button 1 = good
button 2 = evil

two difrent places to place the units each has its own heros, will these work for that?
 

Ruku-Chan

New Member
Reaction score
2
ok i asked this a while ago but i didnt get the trigger i actuayl needed but i did get one close to it but i am stile stuck

i need a trigger that dose this if any one can help

dialog button
button 1 = good
button 2 = evil
both creat a footman at a diffrent place both places are starting points from where you will pick your hero for the game
these button need to come up at the start of that map

thanks to anyone that can help me
 

Jack.K

New Member
Reaction score
1
I made something like this ages ago, I'll pull out the file and answer this for you.

Basically Create your Dialog box trigger which is as follows:

Create 3 Variables: Good, Bad and DialogBox

Trigger:
  • Events
    • Time - Elapsed Game time is 1 second
    • Actions
    • Dialog - Create dialog button for DialogBox named Good
    • Set Good=(Last Created DialogButton)
    • Dialog - Create dialog button for DialogBox named Bad
    • Set Bad=(Last Created DialogButton)
    • Show DialogBox for Player 1 (red)
    • Show DialogBox for Player 2 (blue)


Now create two triggers one named Good and one named Bad. Now put in:

Trigger:
  • Events
    • Dialog - A Dialog button is clicked for DialogBox
    • Conditions
    • (Clicked Dialog Button) equal to Good
    • Actions
    • Unit - Create one Footman for (Triggering Player) at *Then all your regions and stuff*


Now just repeat that for Bad, also at the end of the Good and Bad triggers put a Turn off this trigger command to stop two people playing as the same team. Ok thats it i'm abit tired so if you don't understand anything just message me..

Jack
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
Just add an If/Then/Else, check if the clicked button is Good, then create the unit in the Good region, else create it in the Evil region
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
Try not to make 2 threads about the same problem, especially in the same day... ><

If you did this because you couldnt find your other thread anymore, you can click your name where it says Welcome, Ruku-Chan
go in statistics
Find all threads started by Ruku-Chan
 

Ruku-Chan

New Member
Reaction score
2
Modle help

ok so can any one help me with some modles, i used them the way they said on the side gave them the right path saved and closed the editor but when i reopend it and put the modle on a unit it wouldnt work all i got was a green and blck checkerd box :(
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top