HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Mission How!??

03-02-2005, 07:03 PM#1
Spacepig
hi can some one help me i want to create a mission but i don´t know how to do it.

like this when i Walk to one of the units and press on it then the mission should start !!!! how :D


//spacepig
03-02-2005, 07:09 PM#2
Guest
could you possibly specify what you mean with mission?
03-02-2005, 07:14 PM#3
Guest
Do you mean like a quest that appears when a player selects a unit? If so, here's an example:

Code:
Quest create
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
        (Triggering unit) Equal to Your unit
    Actions
        Quest - Create a Required quest titled <Your quest> with the description <Quest message.>, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
        Quest - Display to Player Group - Player 1 (Red) the Quest Discovered message: You to do something.
        Trigger - Turn off (This trigger)
03-02-2005, 08:09 PM#4
Spacepig
Thanks .. but now i need help to giving them Orders to Save someone or Get someting back to some one if you know what i mean :D hehe

Sorry for my bad english :d
hehe
//spacepig
03-06-2005, 11:20 PM#5
Guest
ok i'm readin this post and i have posted something similar to this but what i need is how to end a specific quest and how to add requirements. Also the code to make an NPC the selectable target of said quest.

Thank you Gameking
03-06-2005, 11:22 PM#6
Taur
okay first more information both of you, you are being very vague, secon d for the quest it is very easy use the function 'mark quest as complete' and 'add quest requirement'
03-06-2005, 11:36 PM#7
Guest
Hello all,
I have some questions about setting up quest for each map i am doing in a campaign mod i am making.

1. I know how to get the Quest to start. Basically i have to have a char walk into a region that has a trigger for the quest on it. I have tried to get the quest to start from a selection event of an NPC but had some trouble with it. Any help here with getting the NPC to be able to start the quest would be great. this is an example of the script i have for the region trigger and the NPC select trigger to start a quest.

Region Trigger
Event
Unit enters region "Main Quest"

Condition
[[Triggering unit] is a hero] equal to true

Action
Quest - Create a Required quest titled Main Quest with the description blah blah using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp


NPC Selection Trigger
Event
Unit Emissary 1 <gen> is selected

Condition
[[Triggering unit] is a hero] equal to true

Action
Quest - Create a Required quest titled Main Quest with the description blah blah using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp

2. Ok i have a quest going that started from a region entering trigger but how do i make the quest completed. I have tried setting it up and it looks like this.

End Main Quest trigger

Event
Unit - A unit owned by Player 1 [Red] Is issued an order targeting an object

Conditions
[[Triggering unit] is a hero] equal to true
[[Way Gate 1 <gen> is A structure] Equal to [Way Gate 1 <gen> is enabled]] and "this is where i put the other condition such as a player controlled hero unit owns 3 specific items"

Actions
Quest - Mark MainQuest as completed

3. The next question i have is where can i find some good tutorials or even some maps with these conditions and quest already in them so i can look at and study to code so i can extrapilate how the code should look for my custom campaign

4. I also have a question how to make the requirements a required task and something that will check off as you complete them there must be a similiar code to this

Event
"item iin inventory is a maninupulative object"

Condition
"Item is blah blah staff"
"Unit is a hero = true"

Action
"Quest requirement completed"

But i dont know the exact wording and i have tried myself for a week and a half now and asked my level design professor and he does not know. So any help would be appreciated


Thank you for your time