Make the trigger initially off, turn it on when you get the quest. i is an integer variable. This completes when you kill three farms.
- Untitled Trigger 010
- Events
- Unit - A unit Dies
- Conditions
- (Region 000 <gen> contains (Triggering unit)) Equal to (==) True
- (Unit-type of (Triggering unit)) Equal to (==) Farm
- Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- i Equal to (==) 2
- Then - Actions
- *complete quest*
- Trigger - Turn off (This trigger)
- Else - Actions
- Set i = (i + 1)
I sort of get it, but I'm a bit of a noob, so can you explain it better?Ok, I'll give it a try.
Can you post the trigger you got now? So they can be compared.
Just use ''copy as text'' on your trigger, and paste it here: [trigger ] ''text'' [/trigger ].
Hello elfin8er,
You seem kinda new here? Just a few things. Try not to double post, use the "Edit" button instead. Also, if you are still new to triggers why don't you try some simpler stuff. Play around with the editor and see how things work. Or you can check out the Tutorials page here on the hive.
Also, Quest - Create only creates the UI in the Quest Dialog, (The dialog next to the Menu tab on the top left) To actually make a quest you need to trigger it.
Do you know how to use variables?
I just can't figure out how to add to a variable
First off, when did I double post? Second, I've already played around with triggers, and made a few things with them. I know what a variable does, and kinda how to use it, I just can't figure out how to add to a variable, only set the variable. Lastly, I know Quest - Create only creates the UI in the Quest Dialog. I just put that to show the user their quest.
1. Don't create a quest at map initialization, it can cause bugs (like disconnects in multiplayer games) Replace the event byI don't have anything in my trigger yet. I'm a bit of a noob, so maybe I'm looking at the wrong thing. I do have a trigger that gives you the quest.
- Quest 1
- Events
- Map initialization
- Conditions
- Actions
- Quest - Display to (All players) the Quest Discovered message: Kill three peons
- Quest - Create a Optional quest titled Just Starting Out with the description Kill 3 Peons, using icon path ReplaceableTextures\CommandButtons\BTNPeon.blp
Oh. Sorry. People do it all the time on other forums.Look at post #3 and #4, they are both yours.