PDA

View Full Version : question about recurring messages


Cedrios
02-21-2004, 9:28 AM
In my LOTR map, which is almost done by the way :D , I want to make it so that every time a certain invincible building is captured, it says "X has been captured!", but only once. I also want it to say "X has been reclaimed!," when it gets reclaimed, but only once.

The problem is that I want it to be able to be captured and reclaimed multiple times, with the message going off only once every time. Can someone plz help?

Dark_Soul74
02-21-2004, 9:40 AM
Switches.

Have it set switch 'A' when it is captured. When it is reclaimed, clear 'A'.
Have it detect for reverse. A captured message will go off only when 'A' is cleared, and reclaimed message once 'A' is set.

Cedrios
02-21-2004, 9:55 AM
I am not new to mapmaking, but I have never used switches before. I understand what they are and what they do, but I am unsure of the order to put them in the triggers. Let me list the triggers and if you would be kind enough please show me where to put the switches and clear switches. Thank you.


trigger for: All Players
conditions:
(this is a force of two possible players)Mt. Gundabad - Mt. Gram commands exactly 1 The Lonely Mountain
Actions:
Display text for current player: The Lonely Mountain has been captured!


trigger for: All Players
conditions:
Player 1 commands exactly 1 The Lonely Mountain
Actions:
Display text for current player: The Lonely Mountain has been reclaimed!




If you could show me where to put the switches in, or any other modifications I need to make to those triggers to make the messages appear once each time, I'd appreciate it. Also, I would like to make it so neither message appears until the first time the building is captured, since player 1 starts out owning it. (in other words I want to make it so it doesn't start the game with the message "The Lonely Mountain has been recaptured" because player 1 starts out owning it. If you could help me with this I'd really appreciate it.

Dark_Soul74
02-21-2004, 12:40 PM
Ok. No problem

trigger for: All Players
conditions:
(this is a force of two possible players)Mt. Gundabad - Mt. Gram commands exactly 1 The Lonely Mountain
Switch A is clear
Actions:
Display text for current player: The Lonely Mountain has been captured!
Set switch A

trigger for: All Players
conditions:
Player 1 commands exactly 1 The Lonely Mountain
Switch A is set
Actions:
Display text for current player: The Lonely Mountain has been reclaimed!
Clear switch A

raylu
02-28-2004, 10:13 PM
Wait a second...your triggers do nothing but display text. They will execute only once also.

In order to capture a building, you're using a seperate trigger for giving the building to another player right?

What's wrong with the system you have now? How do you capture the buildings?