OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
"say"... you mean with sound ??? Be more precise, please. ;D
-
Nah, he means more summit like:
hint format ["player: %1 wins",name (thislist select 0)]
~S~ CD
-
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
-
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
-
titletext [format["player: %1 wins",name (thislist select 0)],"BOTTOM"]
or instead of BOTTOM you could also say: PLAIN
~S~ CD
-
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"]
-
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 ! ;)
-
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