- Joined
- Dec 9, 2014
- Messages
- 176
So I have this quest where you gather wool from sheep, after you have 5 tufts of wool you turn it in, simple enough, right? Well, I'd rather the player not be able to gather the wool from the same sheep twice, at least not for a while anyway. I've been screwing with the triggers in hopes of figuring out how to make it so that once you've gathered wool from one sheep you can gather from a different one, but not the same one. Here's the triggers I have so far, any help is much appreciated and I'm not stingy about reputation lol!
Not Initially On:
Not Initially On:
-
Bandages Start
-
Events
- Player - Player 1 (Red) Selects a unit
-
Conditions
- (Triggering unit) Equal to Brom |cffffcc002|r 0006 <gen>
- ((Sorceress is in (Units in (Region centered at (Position of Brom |cffffcc002|r 0006 <gen>) with size (350.00, 350.00)))) Equal to True) or ((Wizard is in (Units in (Region centered at (Position of Brom |cffffcc002|r 0006 <gen>) with size (350.00, 350.00)))) Equal to True)
-
Actions
- Trigger - Turn on Bandages Count <gen>
- Trigger - Turn on Bandages Count 2 <gen>
- Wait 0.30 seconds
- Special Effect - Destroy QuestAvailable[2]
- Quest - Create a Optional quest titled Bandaids, Quick! with the description |cff33CC33Brom:|r "..., using icon path ReplaceableTextures\CommandButtons\BTNScroll.blp
- Quest - Display to Player Group - Player 1 (Red) the Quest Update message: Bring 5 Tufts of Wo...
- Set BandageQuest = (Last created quest)
- Trigger - Turn off (This trigger)
-
Events
-
Bandages Count
-
Events
- Player - Player 1 (Red) Selects a unit
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Sheep |cffffcc001|r
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- NoSheepWool Equal to (Unit-type of (Triggering unit))
-
Then - Actions
- Game - Display to Player Group - Player 1 (Red) the text: You just gathered f...
-
Else - Actions
- Set TuftsOfWool = (TuftsOfWool + 1)
- Game - Display to Player Group - Player 1 (Red) for 3.00 seconds the text: ((String(TuftsOfWool)) + /5 Tufts of Wool Collected)
- Set NoSheepWool = (Unit-type of (Triggering unit))
-
If - Conditions
- Wait 30.00 seconds
- Set NoSheepWool = SheepWool
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Bandages Count 2
-
Events
- Player - Player 1 (Red) Selects a unit
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Sheep |cffffcc001|r
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- TuftsOfWool Equal to 5
-
Then - Actions
- Special Effect - Create a special effect attached to the overhead of Brom |cffffcc002|r 0006 <gen> using Objects\RandomObject\RandomObject.mdl
- Set QuestComplete[2] = (Last created special effect)
- Sound - Play PeasantBuildingComplete1 <gen>
- Game - Display to Player Group - Player 1 (Red) for 6.00 seconds the text: Now return that woo...
- Trigger - Turn off Bandages Count <gen>
- Trigger - Turn off (This trigger)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Bandages Complete
-
Events
- Player - Player 1 (Red) Selects a unit
-
Conditions
- TuftsOfWool Equal to 5
- (Triggering unit) Equal to Brom |cffffcc002|r 0006 <gen>
- ((Sorceress is in (Units in (Region centered at (Position of Brom |cffffcc002|r 0006 <gen>) with size (350.00, 350.00)))) Equal to True) or ((Wizard is in (Units in (Region centered at (Position of Brom |cffffcc002|r 0006 <gen>) with size (350.00, 350.00)))) Equal to True)
-
Actions
- Special Effect - Destroy QuestComplete[2]
- Quest - Mark BandageQuest as Completed
- Quest - Display to Player Group - Player 1 (Red) the Quest Update message: Bandaids, Quick! |c...
- Game - Display to Player Group - Player 1 (Red) the text: |cffCC00CCEXP: +250...
- Hero - Add 250 experience to Sorceress, Show level-up graphics
- Hero - Add 250 experience to Wizard, Show level-up graphics
- Wait 4.00 seconds
- Game - Display to Player Group - Player 1 (Red) the text: |cff33CC33Brom:|r "...
- Unit - Add Roasted Pork Rejuv HP and MP to Brom |cffffcc002|r 0006 <gen>
- Item - Create Payment for Tufts of Wool at (Position of Brom |cffffcc002|r 0006 <gen>)
- Trigger - Turn off (This trigger)
-
Events