HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some questions involving triggers

02-20-2004, 02:11 PM#1
Vagabond
00ga!
I have some questions about triggers in campaigns,
I putted together my questions from my last posts and added some.
Ok, my questions are:
  • When you create an trigger involving an region (For Example:*A Unit enters region 0000 <gen>*) how do you do so that the trigger doesn't repeat each time a unit enters it? I want the trigger to run ONE time, not every time a unit enters the region.
  • How do you create an quest whit "multiple goals" such as you have to kill 3 ogres?
  • Are there a trigger that "unselects" units if they are selected when a movie/cinematic starts?
  • Were do i find the trigger that sets the camera view to normal game view after a cinematic and whats its name?
  • How do i do unit animations such as a peon hammering on the ground. (check the peons behind Thrall in the bonus campaign (rexxars)in TFT on the first act)
  • How do you set so that the player wont be able to choose race and have to play the selected race (Orc for example)
  • How do you create an trigger so the whole map is covered with fog and the the player wont be able to se the terrain by clicking on the minimap button called"Show terrain"
notice that serveral questions might be added while im creating maps.
Oh, yea if you wonder why i started this thread it was because other n00bs like me (hehe) may also wondering about this.

Thanks if your anwering :D
~VB
(sorry if my spelling is bad:bgrun:)
Plz, answer :D
*Updated 2 times*
02-20-2004, 02:47 PM#2
Burne
1. Depends on what you mean, if you mean once per unit that's a little harder. Once ever or once per player, is easy.

2. Use the Quest - Create Quest Requirement. Do it when you create the quest, so you Create Quest requirement for Last Create Quest with Text: Slay all the Ogres (0 of 3). Then, Set QuestRequireStorage = Last Created Quest Requirement. Later as Ogres are killed you use Change Quest Requirement to update the text. Here's a quick trigger assuming 2 ogres needs to be killed.
Event:
Ogre 001 Dies
Ogre 002 Dies
Actions
Set DeadOgreCount = DeadOgreCount +1
if (DeadOgreCount = 1) then
Quest - Change Quest Requirement QuestRequireStorage to "Slay all the Ogres (1 of 2)
else
Quest - Change Quest Requirement QuestRequireStorage to "Slay all the Ogres (2 of 2)
Quest - Mark Quest Requirement QuestREquireStorage Complete.

3. You want the Selection triggers. Selection - Clear will do what you need.

4. Camera - Reset Game Camera

5. Animation - Set unit Animation. Any set animation will basically replace the unit's stand animation. Animation - Reset Animation restores the unit to normal.
02-20-2004, 03:05 PM#3
Vagabond
sorry for my n00b questions but how do i "set QuestRequireStorage"?
02-20-2004, 03:18 PM#4
Burne
QuestRequireStorage was just a variable. Create a variable call (whatever you like) of type quest requirement, then use the set varaiable trigger to Set <YourVariable> = Last Created Quest Requirement. The variable lets you modify the Quest Requirement later.
02-20-2004, 10:03 PM#5
Vagabond
ah, I c, il try it then :D

haha, here comes the n00biest question ever! How do you set the background music/sound on the map?! lol, i looked but i can't find it.. eheh
02-21-2004, 02:27 PM#6
Vagabond
PLZ! I need a pro to look at the map cause its completely messed up now :(... ANYONE?!