Home   Help Search Login Register  

Author Topic: Sssssssimple question about hiding!!  (Read 1204 times)

0 Members and 3 Guests are viewing this topic.

CptBravo

  • Guest
Sssssssimple question about hiding!!
« on: 24 Jan 2004, 20:20:30 »
Hi,

I have searched and searched but to no avail ..

I have some trigs once activated will give "Hints" and text messeges. Now I want only West or East to see it. My question is HOW??! :)

Thanks for answering my ssssssimple question

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Sssssssimple question about hiding!!
« Reply #1 on: 24 Jan 2004, 20:23:35 »
in a script:

?(side player == EAST): hint "go ruskies go"
?(side player == WEST): hint "kill those russian bastards"

in a trigger:

condition: side player == EAST
or WEST

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

CptBravo

  • Guest
Re:Sssssssimple question about hiding!!
« Reply #2 on: 24 Jan 2004, 21:07:36 »
Thanks Chris! How about the text (the white letters from the Trig) So if group 1 is down it will write in white text to west players group1 down.

And anyway to do it without a script to avoid having 20 scripts for 20 groups?

Thanks again  ;D

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Sssssssimple question about hiding!!
« Reply #3 on: 24 Jan 2004, 21:12:44 »
Take your time to study the scripts, i've sent ya.

I'm using global arrays and variables to do such stuff
with only 1 script. The very same script will customize
the message and effects/commands, for each selected
group (may be one/more/or all groups).

That way you don't need to set up triggers for every single
guy or group on the map.

It may take some time, until you will figure out, how i did it,
but once you got it, you'll see how handy that is.  ;)

:edit - btw - the scripted way for those white textmessages
is:

titletext ["messagetext","PLAIN"]

or:

titletext ["messagetext","PLAIN DOWN"]

let's say you make a loop thru your groops:

_i = 0
_max = count yourgrouparray

#loop

_group = grouparray select _i

?("alive _x" count units _group == 0): titletext [format ["%1 is down"],"PLAIN"]

~6

_i = _i + 1
?(_i < _max): goto "loop"

~S~ CD
« Last Edit: 24 Jan 2004, 21:27:34 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted