wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > Trigger (GUI)/ AI editor Tutorials
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 02-25-2006, 12:19 AM   #1
Bob27
User
 
Join Date: Dec 2005
Posts: 116

Submissions (17)

Bob27 is a jewel in the rough (180)Bob27 is a jewel in the rough (180)Bob27 is a jewel in the rough (180)

Send a message via MSN to Bob27
Default Quests

Introduction
This tutorial is about how to make quests. It will tell you how to make a quest in the quest menu and then get a bit more advanced to the end.

Creating a quest in the Quest Menu
This is a very simply trigger to create a quest in the quest menu. However it will get a bit more advanced when you need to mark it as completed, failed or so on. Heres the basic trigger for creating a quest in the quest menu.


Trigger:
Quest
Collapse Events
Map initialization
Conditions
Collapse Actions
Quest - Create a Required quest titled Quest with the description This is a quest, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp


Part Two
Well that was a very basic trigger for creating a quest in the quest menu, now were gonna get a bit more advanced. Now for the second part we are going to add a variable. Go into the variable manager and create a new quest variable. This will store the quest data rather then creating it. This step is esenctial if you want to change your quest later on in the game. Here is the trigger:


Trigger:
Quest
Collapse Events
Map initialization
Conditions
Collapse Actions
Quest - Create a Required quest titled Quest with the description this is a quest, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Set Quest = (Last created quest)


So just after adding one more trigger we can now edit our quest later on in the game. Now were going to look into how to mark quests failed, completed and ect.

Completing, Discovering and Failing a Quest
This part of the tutorial will tell you how to mark a quest completed. This is the trigger for that:


Trigger:
Quest
Collapse Events
Map initialization
Conditions
Collapse Actions
Quest - Mark Quest as Completed


Pretty simple isn't it, heres the one for failing a quest:


Trigger:
Quest
Collapse Events
Map initialization
Conditions
Collapse Actions
Quest - Mark (Last created quest) as Failed


Now as for Discovering a quest the events and condition will change, however heres what the action would be:


Trigger:
Quest
Collapse Events
Map initialization
Conditions
Collapse Actions
Quest - Mark Quest as Discovered


Now for the three above triggers you can add text messages, or do whatever you want to. And the event will probably be changed.

Quest Examples
These are a few examples of some quests i've put in an RPG. These do not have the quests put in the quests menu, but should give you an idea of some different types of Quests.


Trigger:
Quest One The Knights of Asiria Player One
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Target unit of issued order) Equal to Captain 0029 <gen>
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player_One_Character has an item of type Pirates Battle Plans) Equal to True
Collapse Then - Actions
Cinematic - Turn cinematic mode On for Player Group - Player 1 (Red)
Hero - Order Player_One_Character to Give Captain 0029 <gen> to (Item carried by Player_One_Character of type Pirates Battle Plans)
Player - Add 30 to Player 1 (Red) Current gold
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display Well done! I'll jus.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display Here is your reward.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)
Trigger - Turn off (This trigger)
Trigger - Turn on Quest Two The Scorpians Player One <gen>
Collapse Else - Actions
Cinematic - Turn cinematic mode On for Player Group - Player 1 (Red)
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display The king has ordere.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display First of all you mu.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display Then come back to m.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)

This is another quest, that is in two triggers.


Trigger:
Quest Three Message to the Luitenant Player One
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Target unit of issued order) Equal to Captain 0029 <gen>
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player_One_Character has an item of type Letter to Luitenant Harsful) Equal to True
(Player_One_Character has an item of type Pirates Battle Plans) Equal to True
Collapse Then - Actions
Cinematic - Turn cinematic mode On for Player Group - Player 1 (Red)
Player - Add 30 to Player 1 (Red) Current gold
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display Well the Luitenant .... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display You can walk their .... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display And also this note .... Modify duration: Add 0.00 seconds and Wait
Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)
Trigger - Turn off (This trigger)
Collapse Else - Actions
Cinematic - Turn cinematic mode On for Player Group - Player 1 (Red)
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display I have looked at th.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Send transmission to Player Group - Player 1 (Red) from Captain 0029 <gen> named Captain Hafer: Play No sound and display Take this message a.... Modify duration: Add 0.00 seconds and Wait
Hero - Create Letter to Luitenant Greaflod and give it to Player_One_Character
Hero - Create Pirates Battle Plans and give it to Player_One_Character
Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)
Trigger - Turn on Quest Three Message to the Luitenant Part Two Player One <gen>

Trigger:
Quest Three Message to the Luitenant Part Two Player One
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Target unit of issued order) Equal to Luitenant 0003 <gen>
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player_One_Character has an item of type Letter to Luitenant Greaflod) Equal to True
(Player_One_Character has an item of type Pirates Battle Plans) Equal to True
Collapse Then - Actions
Cinematic - Turn cinematic mode On for Player Group - Player 1 (Red)
Hero - Order Player_One_Character to Give Luitenant 0003 <gen> to (Item carried by Player_One_Character of type Letter to Luitenant Greaflod)
Hero - Create Letter to Luitenant Harsful and give it to Player_One_Character
Cinematic - Send transmission to Player Group - Player 1 (Red) from Luitenant 0003 <gen> named Luitenant Greaflod: Play No sound and display What are these? Wel.... Modify duration: Add 0.00 seconds and Wait
Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)
Trigger - Turn off (This trigger)
Collapse Else - Actions
Cinematic - Turn cinematic mode On for Player Group - Player 1 (Red)
Cinematic - Send transmission to Player Group - Player 1 (Red) from Luitenant 0003 <gen> named Luitenant Greaflod: Play No sound and display What do you want?. Modify duration: Add 0.00 seconds and Wait
Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red)

Conclusion
I hope you have learnt something from this tutorial, expect some more in the near future.
-Bob27

Last edited by Bob27 : 02-25-2006 at 12:20 AM.
Bob27 is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 03-04-2006, 03:07 AM   #2
darkblade65
User
 
Join Date: Jan 2006
Posts: 2

darkblade65 has little to show at this moment (0)

Default

i didnt really look at the quests you tried in your maps but i did check out the discovering/completeing etc, nice tutorial, ill probably check it out again soon to try it in one of my better maps, good job
darkblade65 is offline   Reply With Quote
Old 03-04-2006, 11:15 AM   #3
MindWorX
Level 1 Neothelid


Tools Moderator
 
Join Date: Mar 2004
Posts: 254

Submissions (2)

MindWorX has a spectacular aura about (147)

Default

Very nice tutorial, and described good... :)
MindWorX is offline   Reply With Quote
Old 03-09-2006, 02:03 AM   #4
HernanG
Alastor_36@pwnz
 
HernanG's Avatar
 
Join Date: Jan 2006
Posts: 617

Submissions (15)

HernanG is just really nice (254)HernanG is just really nice (254)HernanG is just really nice (254)HernanG is just really nice (254)HernanG is just really nice (254)

Send a message via MSN to HernanG
Default

very good tutorial, easy to understand, gj
HernanG is offline   Reply With Quote
Old 03-20-2006, 12:15 PM   #5
Babylon2006
User
 
Join Date: Jan 2006
Posts: 7

Babylon2006 seems to be the reincarnation of Wormskull (-11)

Send a message via ICQ to Babylon2006 Send a message via MSN to Babylon2006
Default

thx Very detailed tutorial
Babylon2006 is offline   Reply With Quote
Old 05-19-2006, 09:55 PM   #6
barryburton
User
 
Join Date: May 2006
Posts: 39

barryburton has little to show at this moment (4)

Default

Very nice i didn't think i was gooing to learn anything new.. but to my suprise i did i never new how to do this

Quote:
Quest One The Knights of Asiria Player One
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Target unit of issued order) Equal to Captain 0029 <gen>
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Player_One_Character has an item of type Pirates Battle Plans) Equal to True

I could never figure out how they did item quests thanks!
barryburton is offline   Reply With Quote
Old 09-04-2006, 11:48 PM   #7
Tobbz
User
 
Tobbz's Avatar
 
Join Date: Jun 2006
Posts: 10

Tobbz has little to show at this moment (0)

Default

Nice tut it helped me alot ;)
__________________

Which FF Character Are You?

FF is the BEST!!
Tobbz is offline   Reply With Quote
Old 09-13-2006, 02:47 PM   #8
Tidus
Banned
 
Tidus's Avatar
 
Join Date: May 2006
Posts: 196

Tidus seems to be the reincarnation of TerranUp16 (-119)Tidus seems to be the reincarnation of TerranUp16 (-119)Tidus seems to be the reincarnation of TerranUp16 (-119)Tidus seems to be the reincarnation of TerranUp16 (-119)

Default

I already know it, but it gave me some additional information, thanks for it.
Tidus is offline   Reply With Quote
Old 02-28-2007, 01:38 PM   #9
Your_Master
User
 
Join Date: Nov 2006
Posts: 10

Your_Master has little to show at this moment (0)

Default

How do you make a Establish a base Quest
i want it to show complete when i build:
1 lumber mill
2 farms
1 barracks

i tried all i could, pls tell me the trigger type

and btw, nice tutorial
Your_Master is offline   Reply With Quote
Old 04-07-2007, 11:45 AM   #10
blacksword6868
User
 
blacksword6868's Avatar
 
Join Date: Mar 2007
Posts: 12

blacksword6868 has little to show at this moment (0)

Default

nice tutorial, I'll be referring to this one from time to time. +rep for you
__________________
blacksword6868 is offline   Reply With Quote
Old 05-08-2007, 10:11 PM   #11
Pinzu
User
 
Pinzu's Avatar
 
Join Date: Apr 2007
Posts: 180

Pinzu is on a distinguished road (21)

Question

Nice

You could make this for more players then player(red) without making it so huge.

and ive heard that with a JASS you can show a quest for only one player same goes for multiboards, but i can't do this my self, and i think its not only me that need this for an orpg. Please rep me if you have the answer.

Thank You!
Pinzu is offline   Reply With Quote
Old 05-09-2007, 02:02 PM   #12
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
Please rep me if you have the answer.
That doesn't make any sense.

And yes it is possible. But it requires something more complex than this, shadow1500 had a quest systems for managing multiplayer quests, it is in resources.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 08-18-2007, 01:19 PM   #13
MC_warhammer
User
 
MC_warhammer's Avatar
 
Join Date: Jul 2007
Posts: 6

MC_warhammer has little to show at this moment (0)

Default

Thanks man! This was a usefull toturial Only... do you know how to create a ! above the qeust giver his head??? maybe it stands in the triggers but i didn't read it very good
MC_warhammer is offline   Reply With Quote
Old 08-09-2008, 01:52 PM   #15
Code Lyoko
User
 
Code Lyoko's Avatar
 
Join Date: Aug 2008
Posts: 4

Code Lyoko has little to show at this moment (0)

Default

Thanks man this tut was so helpful .

But how to make a quest where you need to kill someone(s)?
Code Lyoko is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 06:11 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services