OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mr.BoDean 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.
-
try:
({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. (http://www.gamers-forums.com/smilies/contrib/edoom/toung.gif)
The group will halt there until that condition is met you know.
-
try:
({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. (http://www.gamers-forums.com/smilies/contrib/edoom/toung.gif)
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
-
Anyone else have any ideas on this? :-\
-
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
-
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 ???
-
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 ???
-
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
-
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
-
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 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 ;)