Killerbf21
New Member
- Reaction score
- 1
So I want to set up a trigger that does the fallowing.
- If hero has item of item type Sword and Armor, turn off another trigger
- If hero has item of type Sword, turn off Give Sword trigger
- If hero has item of type Armor, turn off Give Armor trigger
-If hero has items of type Sword and Armor, mark Objective as Complete
EDIT: Also, I can't figure out how to mark the Objective as Completed. This is what I have set up to mark a Mission as finished when you do all the required things.
This is what I have so far.
Any help that is givin is greatly appreciated!!!
- If hero has item of item type Sword and Armor, turn off another trigger
- If hero has item of type Sword, turn off Give Sword trigger
- If hero has item of type Armor, turn off Give Armor trigger
-If hero has items of type Sword and Armor, mark Objective as Complete
EDIT: Also, I can't figure out how to mark the Objective as Completed. This is what I have set up to mark a Mission as finished when you do all the required things.
Code:
Events
Unit - Zealot [92.52, 40.92] Enters Wrecked Ship
Local Variables
Intro Quest = (Last created objective) <Objective>
Conditions
Actions
Variable - Set Intro Quest = (Last created objective)
Objective - Mark (Last created objective) as Completed
UI - Display (Name of Zealot) for (All players) to Subtitle area
UI - Display "Hmmm" for (All players) to Subtitle area
General - Wait 10.0 Game Time seconds
UI - Clear All Messages for (All players)
UI - Display (Name of Zealot) for (All players) to Subtitle area
UI - Display "Damnit... Only a Healthkit... I nee..." for (All players) to Subtitle area
General - Wait 2.0 Game Time seconds
Objective - Create a Active Primary objective with text "Finding a Sword and Armor" and description "Debree from the ship is scattered a..."
Objective - Set (Last created objective) players to (Active Players)
Objective - Show (Last created objective) for (Active Players)
General - Wait 8.0 Game Time seconds
UI - Clear All Messages for (All players)
Code:
Events
Unit - Zealot [92.52, 40.92] Receives ("Armor" from the Global data table)
Unit - Zealot [92.52, 40.92] Receives ("Sword" from the Global data table)
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Item carried by Zealot [92.52, 40.92] in 1) == ("Sword" from the Global data table)
And
Conditions
(Item carried by Zealot [92.52, 40.92] in 1) == ("Armor" from the Global data table)
Then
Trigger - Turn Cannot leave untill Armor/Sword is found Off
Objective - Mark (Last created objective) as Completed
Else
Code:
Events
Unit - Zealot [92.52, 40.92] Enters Leave Begining Area
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
((Last created objective) state) == Completed
Then
UI - Display (Name of Zealot) for (All players) to Subtitle area
UI - Display "So... No idea where I am... No clue..." for (All players) to Subtitle area
General - Wait 10.0 Game Time seconds
UI - Clear All Messages for (All players)
Else
UI - Display (Name of Zealot) for (All players) to Subtitle area
Unit - Move (Triggering unit) instantly to Hero Respawn Point (No Blend)
UI - Display "I think i'll wait untill I have a w..." for (All players) to Subtitle area