Home   Help Search Login Register  

Author Topic: Conditional Join when 1 Grp member dies  (Read 1251 times)

0 Members and 1 Guest are viewing this topic.

Mr.BoDean

  • Guest
Conditional Join when 1 Grp member dies
« on: 18 Jun 2003, 13:03:38 »
  Since Opflash will only allow 12 units per group, I was trying to figure out a way to have a group of 2 AI  (pilots) join the leader's squad if 1 of the original 11 members is dead. I'd like to do this in the condition of a WP .

Here's what I've tried but didn't work  :-X :

JOIN WP's Condition field:
this and ! (Alive P1) OR !(Alive P2) OR !(Alive P3) OR !(Alive P4) OR !(Alive P5) ,etc.

AND:
this and !Alive [P1 ll P2 ll P3 ll P4 ll P5],etc.

AND:
this and NOT(Alive (P1llP2llP3llP4llP5,etc.))

Any ideas, without having to call a script?  :-\  Thanks.
« Last Edit: 18 Jun 2003, 13:06:12 by Mr.BoDean »

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:Conditional Join when 1 Grp member dies
« Reply #1 on: 18 Jun 2003, 14:56:36 »
try:
Code: [Select]
({alive _x} count units groupName} < 11)
Hmm, so the join wp will only go off after the above condition, sounds right. But somehow smells weird.
The group will halt there until that condition is met you know.
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.

Mr.BoDean

  • Guest
Re:Conditional Join when 1 Grp member dies
« Reply #2 on: 18 Jun 2003, 15:15:48 »
try:
Code: [Select]
({alive _x} count units groupName} < 11)
Hmm, so the join wp will only go off after the above condition, sounds right. But somehow smells weird.
The group will halt there until that condition is met you know.


Hmm...Thanks ....I think we're on the right track, but something's wrong with syntax so it won't accept it and I can't figure it out.   Something in the ( )'s or { }'s  ...missing one at beginning and I've tried all 3 combos.  :-\  :P

Mr.BoDean

  • Guest
Re:Conditional Join when 1 Grp member dies
« Reply #3 on: 19 Jun 2003, 01:53:12 »
Anyone else have any ideas on this?   :-\

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Conditional Join when 1 Grp member dies
« Reply #4 on: 19 Jun 2003, 02:04:48 »
use triger w/ join command n not WP :P (wps r not relaible)

in da condition put

"alive _X" count units grouname < 11  (same syn as Freds ;D) - make sure dat u name da group aright n all dat ;)

in da on activision put

[pilotname,pilotname1] join (leader groupname)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Mr.BoDean

  • Guest
Re:Conditional Join when 1 Grp member dies
« Reply #5 on: 19 Jun 2003, 03:06:36 »
use triger w/ join command n not WP :P (wps r not relaible)

in da condition put

"alive _X" count units grouname < 11  (same syn as Freds ;D) - make sure dat u name da group aright n all dat ;)

in da on activision put

[pilotname,pilotname1] join (leader groupname)

LCD OUT

Okay, Thanks, LCD , that works as long as one of the 11 HAS actually died. If not, it comes up with an "Expected Bool" error.
   So, if I were to have the pilots Exec a script using the "alive _X" count units groupname < 11   line, how would I go about having them check the group's alive status every minute or so?
  Or is there a better way to do that?  :-X    ???  
 

Mr.BoDean

  • Guest
Re:Conditional Join when 1 Grp member dies
« Reply #6 on: 19 Jun 2003, 03:22:57 »
Hmmm.. would something like this work?


#Count
"alive _X" count units groupName = n
?(n<11) goto "Join"
~60
Goto "Count"

#Join
[Pilot1,Pilot2] join groupName

Exit
 
edit: Hmm, nope, I just got the 'ol :
'this  l#l': Error Type Object, Expected Bool   message again.   :P

  Is there a better way to do that?  :-X    ???  
« Last Edit: 19 Jun 2003, 03:38:40 by Mr.BoDean »

deaddog

  • Guest
Re:Conditional Join when 1 Grp member dies
« Reply #7 on: 19 Jun 2003, 03:57:54 »
It should be:

_n=("alive _x" count units groupName)
?_n<11:goto "Join"


The variable should always be on the left when assigning it.  Also note the colon in the second line.

 ;D

Mr.BoDean

  • Guest
Re:Conditional Join when 1 Grp member dies
« Reply #8 on: 19 Jun 2003, 04:17:57 »
It should be:

_n=("alive _x" count units groupName)
?_n<11:goto "Join"


The variable should always be on the left when assigning it.  Also note the colon in the second line.

 ;D


Hmm ...Okay, DeadDog  Thanks ...I altered it and got the following to work, mostly, but still come up with that Bool Error:

#Count
?("alive _X" count units GroupName <11) :Goto "Join"
~60
Goto "Count"

#Join
~10
[Pilot1,Pilot2] join GroupName

Exit

I will see how I can modify your way to work with the wait period.
  (The ~60 is for them to check every 60 secs if someone has died , which I did presumably to consume less client CPU power ??? / less lag , but not sure if that matters.  The ~10 in JOIN is to make sure the dead have cleared the leader's screen so the 2 Pilots can join.)

Thanks , I'll go test some more.  :joystick:  :D

Mr.BoDean

  • Guest
Re:Conditional Join when 1 Grp member dies
« Reply #9 on: 19 Jun 2003, 04:32:51 »
Ok DD , your way works just the same ,but I still get that Bool Error whether someone in the group has died or not yet.   :P   ???   It seems to go away shortly after the pilots join , though.

Mr.BoDean

  • Guest
Re:Conditional Join when 1 Grp member dies
« Reply #10 on: 20 Jun 2003, 14:31:27 »
Ok DD , your way works just the same ,but I still get that Bool Error whether someone in the group has died or not yet.   :P   ???   It seems to go away shortly after the pilots join , though.


Ok, got this one fixed, too.  Just a bonehead error I made on 2 different test samples!

Make sure the default condition line of a WP is true and not this, like a Trigger .  :-X        ;)