Home   Help Search Login Register  

Author Topic: change trigger conditions  (Read 897 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
change trigger conditions
« on: 13 Nov 2002, 09:02:23 »
Is there anyway to change the condition field text in middle of a mission?

THX in advance

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:change trigger conditions
« Reply #1 on: 13 Nov 2002, 09:43:47 »
I'm not sure, if you can use pre defined strings/variables
as condition, which you may alter later in the mission.

But what would work for sure is:

You could create one trigger, waiting on a variable or boolean
(e.g: condition: gogo)

And use multiple triggers, or waypoints, to set this "gogo"
to true.

So e.g: trigger1 is waiting for west/present
onactivation: gogo=true

trigger2 is waiting for east/present
onactivation: gogo=true

trigger3 is waiting for anything else
onactivation: gogo=true

:edit - P.S: alternatively you could use the "OR" function
in your main trigger.
condition: gogo1 OR gogo2 OR gogo3

and one of these boolean's you set to true depending on
specific different circumstances.

hope this helps

~S~ CD
« Last Edit: 13 Nov 2002, 09:47:17 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

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:change trigger conditions
« Reply #2 on: 13 Nov 2002, 16:56:56 »
well I donÂ't think that will help, cause I want to do a mission like this:

You have to rescue a civilian group, take out the guards without getting in to close, of course I donÂ't want that the player will be ayble to kill the civilians, so IÂ've set out a trigger and the condition feild is:
"this OR NOT(alive guy) OR NOT(alive dude)"
I donÂ't want the player to move close to the targets, thats what the "this" is for
And the OnActivation field:
"you setdammage 1.0"
IÂ'll make a debreif later, IÂ'm just using setdammage now.
Later in the mission, I want the civilians to team up with the player, and be able to die without losing the players life.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:change trigger conditions
« Reply #3 on: 13 Nov 2002, 17:10:51 »
I can also change the players name, but how do I do that?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:change trigger conditions
« Reply #4 on: 13 Nov 2002, 19:07:22 »
Ah i've got ya,

This you can do by using a boolean condition in combination
with your ?civie alive checkings.

e.g: use the init.sqs or the player's init field to initialize
a boolean variable: protect=true

Then you need to combine the conditions

protect AND not (alive guy)

Now if the time has come, so that the trigger shouldn't become activated anymore, just set protect to false:
protect=false

Maybe you need to redefine your triggers, i'm not sure if
you could put that all into only one trigger condition.

If possible, i can imagine that it would like this:

protect AND (this OR not (alive guy) OR not (alive dude))

If that doesn't work, just make a workaround by using one
or two more triggers.  ;)

~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

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:change trigger conditions
« Reply #5 on: 13 Nov 2002, 19:27:10 »
thx, now I can shoot guy and dude, AT LAST, MUHAHAHAHAHA :noo: :gunman: :beat: