HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quest - simple one

05-11-2006, 08:18 AM#1
Ramong
Hey.
Im making a map with 2 teams.
There is alot of quests, some only avavible to one of the teams.
I want to make a quest that appere when you talk to a NPC, and appere to all on that team.
When 1 person from team1 talk to the NPC all on that team should get the quest. and ofc only can be done once.

The quest is:
You talk to NPC and all on your team get quest XX.
You need to find Y and delever it.
Quest XX complete for all players.

Cant get it to work. Please help me.

Ramong :D
05-11-2006, 10:51 AM#2
aquilla
I think this is what you're looking for...

Trigger:
Create quest
Collapse Events
Unit - A unit enters <whatever region>
Collapse Conditions
((Triggering unit) is A Hero) Equal to True
((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
Collapse Actions
Trigger - Turn off this trigger
Collapse Player Group - Pick every player in (All allies of (Owner of (Triggering unit))) and do (Actions)
Collapse Loop - Actions
-------- checks if the local player ("you") equals the picked player --------
Custom script: if GetLocalPlayer() == GetEnumPlayer() then
Quest - Create the quest
Set team1quest = Last created quest
Custom script: endif

I don't know if it will cause desyncs though, as I have tested it, the set might need an array :(

to edit the quest, something like this would do it I think
Trigger:
-------- checks if the local player ("you") is an ally of triggering player --------
Custom script: if IsPlayerAlly(GetLocalPlayer(), GetTriggerPlayer()) then
Quest - do stuff
Custom script: endif
05-11-2006, 03:08 PM#3
Ramong
ty, gonna try it now :D

but what about a requirement (sp?) for the quest and what about when you finish it?