Do you really need to know a trigger that isn't listed in "scenario editor techniques"? or you simply can't be bothered to create your own thread? You've come to the right place. Ask me a question about triggers and I'll try my hardest to answer it for you. I will edit this post and enter the questions and answers.
Eg.
HappyHippyHarry asked: How do I respawn units?
1) make an object for p1. eg. Bob
2) make an effect creating Bob.
3) in "Triggers" under "condition" find "Bob exists"
4) Tick the box saying "If not"
5) Add the effect in and make it looping
* Note - To prevent glitching of the triggers make the condition p1 loss = 1 to p1 loss >=1. Also unless you are making each player have only 1 unit than make
p1's loss - 1 instead of making it 0.
---------------------------------------------------
HappyHippyHarry asked: How can I make it so that you can buy and sell unit attributes or resources?
Buying:
1) make an area.
2) make an object that p1 is in the area.
3) make any class attribute improvement you want.
4) make an effect that p1 gold - 10
5) make a condition that p1 gold = 10
6) make a trigger that if ( p1 object )
exists, then ( p1 gold - 10 and ) and
( p1 class attribute + X ) make it looping and true for N seconds.
Selling:
1) make an area.
2) make an object that p1 is in the area.
3) make any clas attribute you want to take away from you want.
4) make an effect making p1 gold + 10
5) make a trigger that if ( p1 object exists ) then ( p1 gold + 10 ) and ( p1 class attribute - X ) make it looping and true for N seconds.
-----------------------------------------------------
Mike Bul asked: I wanna when an object reaches an area Object to do something. How can i do it?
1.In "areas" Create the area you wish for the person to reach. Eg. Town Square.
2. Go into "objects" and select the desired object(s). Check the box that says "in area" and choose "town square" from the drop down menu. Call the object "Bob in town square"
3. Create your effect that you wish to happen
4 In "trigerrs" select "condition" and choose "Bob in town square exists"
5 Then add in your effect(s).
------------------------------------------------------
EmpireMaster asked: How do I get repeating waves of units every 10 mins?
1.) make an object that defines the group of unit you want to have (object definition + area where you want to spawn)
= 'unit1
2.) make an effect that spawns the unit group
= 'create unit'
3.) make an effect that sends the groups from the area where they spawn to the area they shall attack (or the object)
= 'task area' or 'task object'
4.) create the trigger saying:
IF 'always true'
THEN 'create unit1' and 'task object'
looping: yes
condition true for: 600 seconds
----------------------------------------------
GRIMES asked: I guess this is a noob question, but how can I set it if specific units die (2 in my case) player wins?
This is very simple.
1- Make an object that holds both the units you want to die in order to win. "Object1"(Select on map will do)
2- Make an effect: Player>Victory >Player1 = "effect1"
3- Make a trigger with the following specifications:
IF[x]NOT "Object1 exists"
THEN "effect1"
looping?: NO
conditions true for: NOT TICKED
-----------------------------------------------
GRIMES asked: I want to when i find two cargo trucks I receive ownership. How do i do it?
1- Make an object: eg. like Bob
2- Make an object: select objects on map - select your two cargo trucks(if they are in different locations, you need to make 2 objects) tick the LOS box and select "bob" from the dropdown list
3- make an effect "change owner"
4- make the trigger:
IF "Bob"
THEN "change owner"
--------------------------------------------------
Vincentk83 asked:
1: when scenario starts I want to put some text on the left and screen is dark.
2: I want to put the camera in a precise place after this dark screen.
3: when a specific unit gets killed i want to get some new units on the map (actually some tanks and artillery on a transport ship)
4: I want to rename heroes
(Answers by shieldwolf23)
On 1:
a. “Object” > Select on map any object. Label this STARTER.
b. “Effect” > “Player” > “Visibility-Off”. This is to ensure your map really starts in black. Label this BLACK.
c. “Effect” > “Media” > “Send Chat Message”. Put your message here. Adjust number to desired length of time the message will appear onscreen. Label this MESSAGE.
d.“Trigger” > “Condition”. Place STARTER as condition. No Check.
e. “Trigger” > “Effect”> “BLACK” > “1” > “MESSAGE”. Delays are used to ensure sequence of effects being fired.
f. TRIGGER is ON.
On 2: What do you want to achieve here, Vince? A mere camera positioning, or a prelude to a dialogue or emphasis on a unit character? Please elaborate here.
On 3: If you want tanks and artillery on a transport ship, just create these units using another player and this is a ONE TIME trigger, then:
a. “Object” > Select the transport ship. Be sure the tanks and artillery are inside it. Label it TRANSPORT.
b. “Object” > Select on map. This is the Specific Unit to be killed. Label this SPEC.
c. “Effect” > “Object” > “Task-Area”. Select TRANSPORT and “Offmap”. This will make the transport unit NOT available until the specific unit is killed. Label this OFFMAP TRANSPORT.
d. “Effect” > “Object” > “Task-Area”. Select TRANSPORT and “Previous Location”. This will make the transport unit available after the specific unit is killed. Label this ONMAP TRANSPORT.
e. “Effect” > “Object” > “Owner”. Select TRANPORT and “Player 1”. I assume that after killing the specific unit, the player will get the transport, not the computer. Label this P1 TRANSPORT.
Trigger 1: To make the transport not available:
a. “Trigger” > “Condition” > “TRANSPORT”
b. “Trigger” > “Effect” > “OFFMAP TRANSPORT”
Trigger 2: To have the transport after specific unit is killed:
a. “Trigger” > “Condition” > “SPEC”. Checked.
b. “Trigger” > “Effect” > “ONMAP TRANSPORT” > “1” > “P1 TRANSPORT”.
Both Triggers are ON.
On 4: Be sure that the units you want to rename belong to the applicable player before you rename it.
a. “Object” > Select the unit. Label it UNIT.
b. “Effect” > “Object” > “Class Name”. Rename your unit here. Add space before the name if you want the name to be seen even by a mere pass of the mouse pointer. Label it RENAME.
c. “Trigger” > “Condition” > “UNIT”
d. “Trigger” > “Effect” > “RENAME”
e. Trigger is ON.
Get asking!
go to http://www.youtube.com/happyhippyharryfor the most retarded thing you ever seen!
Eg.
HappyHippyHarry asked: How do I respawn units?
1) make an object for p1. eg. Bob
2) make an effect creating Bob.
3) in "Triggers" under "condition" find "Bob exists"
4) Tick the box saying "If not"
5) Add the effect in and make it looping
* Note - To prevent glitching of the triggers make the condition p1 loss = 1 to p1 loss >
p1's loss - 1 instead of making it 0.
---------------------------------------------------
HappyHippyHarry asked: How can I make it so that you can buy and sell unit attributes or resources?
Buying:
1) make an area.
2) make an object that p1 is in the area.
3) make any class attribute improvement you want.
4) make an effect that p1 gold - 10
5) make a condition that p1 gold = 10
6) make a trigger that if ( p1 object )
exists, then ( p1 gold - 10 and ) and
( p1 class attribute + X ) make it looping and true for N seconds.
Selling:
1) make an area.
2) make an object that p1 is in the area.
3) make any clas attribute you want to take away from you want.
4) make an effect making p1 gold + 10
5) make a trigger that if ( p1 object exists ) then ( p1 gold + 10 ) and ( p1 class attribute - X ) make it looping and true for N seconds.
-----------------------------------------------------
Mike Bul asked: I wanna when an object reaches an area Object to do something. How can i do it?
1.In "areas" Create the area you wish for the person to reach. Eg. Town Square.
2. Go into "objects" and select the desired object(s). Check the box that says "in area" and choose "town square" from the drop down menu. Call the object "Bob in town square"
3. Create your effect that you wish to happen
4 In "trigerrs" select "condition" and choose "Bob in town square exists"
5 Then add in your effect(s).
------------------------------------------------------
EmpireMaster asked: How do I get repeating waves of units every 10 mins?
1.) make an object that defines the group of unit you want to have (object definition + area where you want to spawn)
= 'unit1
2.) make an effect that spawns the unit group
= 'create unit'
3.) make an effect that sends the groups from the area where they spawn to the area they shall attack (or the object)
= 'task area' or 'task object'
4.) create the trigger saying:
IF 'always true'
THEN 'create unit1' and 'task object'
looping: yes
condition true for: 600 seconds
----------------------------------------------
GRIMES asked: I guess this is a noob question, but how can I set it if specific units die (2 in my case) player wins?
This is very simple.
1- Make an object that holds both the units you want to die in order to win. "Object1"(Select on map will do)
2- Make an effect: Player>
3- Make a trigger with the following specifications:
IF
THEN "effect1"
looping?: NO
conditions true for: NOT TICKED
-----------------------------------------------
GRIMES asked: I want to when i find two cargo trucks I receive ownership. How do i do it?
1- Make an object: eg. like Bob
2- Make an object: select objects on map - select your two cargo trucks(if they are in different locations, you need to make 2 objects) tick the LOS box and select "bob" from the dropdown list
3- make an effect "change owner"
4- make the trigger:
IF "Bob"
THEN "change owner"
--------------------------------------------------
Vincentk83 asked:
1: when scenario starts I want to put some text on the left and screen is dark.
2: I want to put the camera in a precise place after this dark screen.
3: when a specific unit gets killed i want to get some new units on the map (actually some tanks and artillery on a transport ship)
4: I want to rename heroes
(Answers by shieldwolf23)
On 1:
a. “Object” >
b. “Effect” >
c. “Effect” >
d.“Trigger” >
e. “Trigger” >
f. TRIGGER is ON.
On 2: What do you want to achieve here, Vince? A mere camera positioning, or a prelude to a dialogue or emphasis on a unit character? Please elaborate here.
On 3: If you want tanks and artillery on a transport ship, just create these units using another player and this is a ONE TIME trigger, then:
a. “Object” >
b. “Object” >
c. “Effect” >
d. “Effect” >
e. “Effect” >
Trigger 1: To make the transport not available:
a. “Trigger” >
b. “Trigger” >
Trigger 2: To have the transport after specific unit is killed:
a. “Trigger” >
b. “Trigger” >
Both Triggers are ON.
On 4: Be sure that the units you want to rename belong to the applicable player before you rename it.
a. “Object” >
b. “Effect” >
c. “Trigger” >
d. “Trigger” >
e. Trigger is ON.
Get asking!
go to http://www.youtube.com/happyhippyharryfor the most retarded thing you ever seen!
[This message has been edited by HappyHippyHarry (edited 02-15-2009 @ 04:32 AM).]