OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Insanoblan on 17 Feb 2004, 22:55:57

Title: Trigger problems and me
Post by: Insanoblan on 17 Feb 2004, 22:55:57
I have frequent problems with triggers and today i bring one to you  ;D

I have a race map i am making, and i want it so that when someone reaches the end of the race they activate a trigger that says:

"(players name) wins!!"

I know how to make it say text, but i dont know how to make it say the person who activated the trigger's name.
Title: Re:Trigger problems and me
Post by: Loup-Garou on 17 Feb 2004, 23:12:00
"say"... you mean with sound  ??? Be more precise, please.  ;D
Title: Re:Trigger problems and me
Post by: Chris Death on 18 Feb 2004, 01:01:02
Nah, he means more summit like:

hint format ["player: %1 wins",name (thislist select 0)]

~S~ CD
Title: Re:Trigger problems and me
Post by: Tomb on 18 Feb 2004, 01:05:41
If you use several laps, ya could use one trigger per lap - each setting a condition to TRUE
and then the final-lap-trigger could use those conditions...

GAH! Im in a bad condition these days... :P ::) ;D


Title: Re:Trigger problems and me
Post by: Insanoblan on 18 Feb 2004, 02:41:28
Alright that works well, but I want it in the text that shows up in the middle of the screen, not in hint format :)
Ps, there isnt laps its more of a drag race type thing
Title: Re:Trigger problems and me
Post by: Chris Death on 18 Feb 2004, 04:05:02
titletext [format["player: %1 wins",name (thislist select 0)],"BOTTOM"]

or instead of BOTTOM you could also say:  PLAIN

~S~ CD
Title: Re:Trigger problems and me
Post by: PsyWarrior on 18 Feb 2004, 12:18:50
Greetings,

Sorry to split hairs, but isn't it "PLAIN DOWN" in code and "BOTTOM" only in the trigger effects window? Or can you use "BOTTOM" in code as well? Or am I barking up the wrong tree again?  ::)

-Supreme Commander PsyWarrior
-Psychic Productions Studios

P.S. as in titleText ["Here is some text", "Plain Down"]
Title: Re:Trigger problems and me
Post by: Loup-Garou on 18 Feb 2004, 12:58:11
There's a easier way to do that !  :D

Create a trigger (F3). In the "effects" option (double left-click to edit the triggrer), choose : "text" and type your message.
Then link this trigger with the player (press F2 and draw a blue line). When the player will come in the trigger's area the text will appear !  ;)
Title: Re:Trigger problems and me
Post by: Chris Death on 18 Feb 2004, 20:59:06
Quote
Sorry to split hairs, but isn't it "PLAIN DOWN" in code and "BOTTOM" only in the trigger effects window? Or can you use "BOTTOM" in code as well? Or am I barking up the wrong tree again?

Could be Psy Warrior, been writing that from my work, and
also i ain't doin OFP editing every day anymore   :'(

Might cost only a simple try to discover that  ;)


Loup_Garou:

Have you ever tried grouping a trigger to more than one unit?

Read the whole thread again, try out what you suggested, and
then come back and tell me it worked  ;)

~S~ CD