Home   Help Search Login Register  

Author Topic: Counting Casualties  (Read 1181 times)

0 Members and 1 Guest are viewing this topic.

Offline windquest

  • Members
  • *
  • I'm a llama!
Counting Casualties
« on: 03 Jun 2005, 17:09:04 »
I am new and am trying to find out if there is a way to keep track of casualties or count casualties. Also how do you get all groups to report in using a trigger?

Thank you

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Counting Casualties
« Reply #1 on: 03 Jun 2005, 17:40:08 »
Welcome to the forum!

Counting casualties is hard but counting the loons left alive (and subtracting it from the original total) is relatively easy.    Can you tell us more about what you are trying to do?

Quote
how do you get all groups to report in
What do you mean?   Again, a bit more detail and I'm sure we'll be able to help.     ;)
« Last Edit: 03 Jun 2005, 17:40:36 by macguba »
Plenty of reviewed ArmA missions for you to play


Offline windquest

  • Members
  • *
  • I'm a llama!
Re:Counting Casualties
« Reply #3 on: 03 Jun 2005, 20:48:29 »
What I am trying to do is to keep track of my groups so if i need to send my players group to an area that my need to be reinforced.

Thank you

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Counting Casualties
« Reply #4 on: 03 Jun 2005, 21:36:15 »
The easiest way would probably be to use a trigger for each group:-

Condition: noReinforce and ("alive _x" count units grp1 < 1)
On Activation: noReinforce=false and (whatever you like)

In your init.sqs
noReinforce=true

The variable noReinforce is used to ensure that only one of the triggers fires.  Otherwise the player could get sent running all over the place.   Or maybe that's what you want.

Syntax not guaranteed.   Obviously you name one group grp1, the next grp2 with its trigger adjusted accordingly and so on.
Plenty of reviewed ArmA missions for you to play

Offline MrN

  • Contributing Member
  • **
  • Pffff
Re:Counting Casualties
« Reply #5 on: 03 Jun 2005, 21:43:43 »
Not quite sure what you're after but I'll have a stab, this might not be the answer but hopefully it'll nudge you in the right direction.

If you have a group that might need backup if you name the leader:
L1

Insert a trigger with:
("alive _x" count (units l1)) < 4

in the "condition" line.

In the "On activation" line put:
L1  sideChat "Need backup"

This will get your squad to report they need back up when their numbers are less than 4.

If you want to get fancy there may well be ways of putting L1's co-ordinates in the message but that is beyond a quick answer and me.  ;) Chances are you'll need to use some scripting.

Alternatively you could use Bremmers AI script (search at the editors depot) on the players squad and the squads that you want tracking and it'll do it for you, kind of.



In the 60's, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal.

Offline windquest

  • Members
  • *
  • I'm a llama!
Re:Counting Casualties
« Reply #6 on: 06 Jul 2005, 00:50:57 »
Nothing is working here.

I know how many units I start with (East & West). What I want to do is set up a trigger acivated by radio, that will count the remaining units for both sides and display it on the screen similar to:

       West:  120
       East:     50

I don't know if there is a simple trigger for this or a simple script file. In Short I want to beable to activate a trigger by radio and have a display of surviving units for both sides.

Any help will be greatly appreciated

Thank you




Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Counting Casualties
« Reply #7 on: 06 Jul 2005, 03:58:58 »
trigger condition: radio alpha
on activation: hint format ["West: %1","East: %2", (countside west),(countside east)]

or something similar
not guarunteed (nothing truely is ;D :P ::) :o)

Offline windquest

  • Members
  • *
  • I'm a llama!
Re:Counting Casualties
« Reply #8 on: 06 Jul 2005, 17:46:06 »
Trigger Condition = Radio Alpha
On Activation: hint format ["West: %1", "East: %2", (west countside list trig1), (east countside list trig1)]

This works to a point.

It only displays "West:" , no east and no numbers. Seems to me its a simple math routine. I am just having problems with the countside command and no one has giving me a good example of how its works.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Counting Casualties
« Reply #9 on: 06 Jul 2005, 20:19:21 »
You could try the command reference for the syntax for the countside command.

Countside


Planck
I know a little about a lot, and a lot about a little.

Offline windquest

  • Members
  • *
  • I'm a llama!
Re:Counting Casualties
« Reply #10 on: 06 Jul 2005, 22:22:55 »
I have used the comref and it has not helped.


all it says is: side countside array

I think its setting up the array that is giving me problems. Has only actually worked it out so that Countside has returned a number instead of activate a trigger?

I also have a script that does not work either.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Counting Casualties
« Reply #11 on: 06 Jul 2005, 22:55:14 »
perhaps this will help clarify.

see attached. the syntax in triggerhappy's hint format above is incorrect, btw - it should read

Code: [Select]
hint format ["West: %1, East: %2", west countside list trig1, east countside list trig1]

that'll work ;)
« Last Edit: 06 Jul 2005, 22:59:08 by bedges »

Offline windquest

  • Members
  • *
  • I'm a llama!
Re:Counting Casualties
« Reply #12 on: 06 Jul 2005, 23:56:26 »
Thanks Bedges. Works great...I had to add to triggers to encompass the map, one each for east and west present, but I have it working good. Thanks alot.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Counting Casualties
« Reply #13 on: 07 Jul 2005, 00:34:11 »
woops, it was a quickie, sry bout that :P