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.
ReciveQuest

Events


Unit - A unit enters Farmer'sQ

Conditions

Actions


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



If - Conditions




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



Then - Actions




Quest - Display to (All players) the Quest Update message: (Hi, my farm is getting overrunned by some pigs. Could you help me get rid of them + ((Name of (Owner of (Entering unit))) + ?))




Set (Quest_Pig_Hunt[(Player number of (Owner of (Entering unit)))] = (Quest_Pig_Hunt[(Player number of (Owner of (Entering unit)))] + 1)



Else - Actions


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



If - Conditions




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



Then - Actions




Quest - Display to (All players) the Quest Update message: (Hi, have you killed those horrible pigs yet + ((Name of (Owner of (Entering unit))) + ?))



Else - Actions


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



If - Conditions




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



Then - Actions




Quest - Display to (All players) the Quest Update message: (((Thanks + (Name of (Owner of (Entering unit)))) + for getting ridd of those pigs for me. Here take this item.) + <Empty String>)




Set Quest_Pig_Hunt[(Player number of (Owner of (Entering unit)))] = (Quest_Pig_Hunt[(Player number of (Owner of (Entering unit)))] + 1)



Else - Actions


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



If - Conditions




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



Then - Actions




Quest - Display to (All players) the Quest Update message: Hi, there.



Else - Actions
CountKilledUnit - Works in multiplayer

Events


Unit - A unit Dies

Conditions


And - All (Conditions) are true



Conditions




Quest_Pig_Hunt[(Player number of (Owner of (Killing unit)))] Equal to 1




(Unit-type of (Dying unit)) Equal to Pig

Actions


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



If - Conditions




Count_Killed_Units[(Player number of (Owner of (Killing unit)))] Less than 10



Then - Actions




Set Count_Killed_Units[(Player number of (Owner of (Killing unit)))] = (Count_Killed_Units[(Player number of (Owner of (Killing unit)))] + 1)




Game - Display to (All players) the text: (((Name of (Owner of (Killing unit))) + has killed ) + (String(Count_Killed_Units[(Player number of (Owner of (Killing unit)))])))



Else - Actions




Quest - Display to (All players) the Quest Update message: (((Name of (Owner of (Killing unit))) + has completed the quest and killed ) + (String(Count_Killed_Units[(Player number of (Owner of (Killing unit)))])))




Set (Quest_Pig_Hunt[(Player number of (Owner of (Killing Unit)))] = (Quest_Pig_Hunt[(Player number of (Owner of (Killing Unit)))] + 1)
thank you for taking the time to go into so much detail redmarine. I will try this out later on it makes sense, i only have trouble sometimes finding the actually identical triggerAlso one last question, if i set a quest to a integer when the quest is complete eg kill a boss, the boss death trigger sets the integer for the quest to 1 for example and this triggers the quest complete action. Storing quests as variable will allow me to set a quest and come back to it later on whilst others have been made and completed is this how it all works?
oh i see, i think i understand now, your using the if, then action, to set what each variable integar would do, then when sometrhing triggers, you set the integar, eg kill a boss, sets intgar to value 3 eg finished?
and make it arrayed to not spam with 100000000 effect variables
bah I just wanted to post something
