- Joined
- Feb 11, 2011
- Messages
- 1,860
Am I missing something? Is there a way to create a quest for just one player, i.e. the one that obtains the quest? Is it possible with GUI?
Thanks,
- Mr_Bean
Thanks,
- Mr_Bean
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Custom script - if GetLocalPlayer = 'Player' then
Actions 'for specific players'
Custom script - endif
There is no trigger that makes a quest for a specific player that is in GUI but you can use the custom script 'if GetLocalPlayer = 'Player' then' then the actions in between that action and the end if are only shown for that specific player but only keep use this for such things as messages until you recognize what could desinc your map.
Custom script - if GetLocalPlayer = 'Player' then
Actions 'for specific players'
Custom script - endif
if GetLocalPlayer() == Player then
//actions
endif
if GetLocalPlayer() == GetOwningPlayer(unitVariablehere) then
//actions
endif
Q1 Barrens Cleansing

Events


Unit - A unit enters Quest 1 <gen>

Conditions


((Triggering unit) is A Hero) Equal to True

Actions


Custom script: if GetLocalPlayer() == GetOwningPlayer(GetEnteringUnit()) then


Quest - Create a Required quest titled Kill Stuff with the description Kill everyone, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp


Custom script: endif
Set LocalPlayer = Player 1 (Red) //modify this to whatever player you want to show it for
Custom script: if GetLocalPlayer() != udg_LocalPlayer then
<Your shit here>
Custom script: endif
TrySo its more easy.
Set LocalPlayer = Player 1 (Red) //modify this to whatever player you want to show it for
Custom script: if GetLocalPlayer() != udg_LocalPlayer then
<Your shit here>
Custom script: endif
Kill Centaurs

Events


Unit Dies

Conditions


Owner of Dying unit Equal to Neutral Hostile

Actions


Set Local_Player = (Owner of (Killing unit))


Custom script: if GetLocalPlayer() == udg_Local_Player then


[ACTIONS]


Custom script: endif
Quest 1

Events


Player - Player 1 (Red) Selects a unit


Player - Player 2 (Blue) Selects a unit


Player - Player 3 (Teal) Selects a unit


Player - Player 4 (Purple) Selects a unit


Player - Player 5 (Yellow) Selects a unit

Conditions

Actions


Custom script: if GetLocalPlayer() == GetTriggerPlayer() then


Quest - Create a Required quest titled Barrens Cleansing with the description Greetings, Hero. Th..., using icon path ReplaceableTextures\CommandButtons\BTNcentaur.blp


Quest - Display to (All players) the Quest Discovered message: |cffffcc00Quest Acc...


Special Effect - Destroy Quest_Unobtained_Effect[1]


Special Effect - Create a special effect attached to the overhead of Quest_Giver[1] using floating questionmark_v2.mdx


Custom script: endif


Set Quest[1] = (Last created quest)


Quest - Create a quest requirement for Quest[1] with the description Kill 10 Centaurs.


Quest - Create a quest requirement for Quest[1] with the description Return to the Serge...


Set Quest_Obtained_Effect[1] = (Last created special effect)
Untitled Trigger 001

Events


Unit - A unit enters Region 000 <gen>

Conditions


(Entering unit) Equal to your_unit[(Player number of (Owner of (Entering unit)))]

Actions
your actions here
Untitled Trigger 001

Events


Unit - A unit enters Region 000 <gen>

Conditions


(Entering unit) Equal to your_unit[(Player number of (Owner of (Entering unit)))]

Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions


(Triggering unit) Equal to your_unit[player number of player you want quest to work for]

Then - Actions
your actions here

Else - Actions
