OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ProudPotter2490 on 08 May 2005, 20:42:06

Title: Condition: loon1 Spots loon2
Post by: ProudPotter2490 on 08 May 2005, 20:42:06
Hey guys!
I want to make a trigger where it'll only activate when one loon spots another loon. Simple query really :)! Thanks for any help.
ProudPotter2490 :afro:
Title: Re:Condition: loon1 Spots loon2
Post by: THobson on 08 May 2005, 20:48:49
Did you check this out?  It just a little way down the page.

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=23543 (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=23543)
Title: Re:Condition: loon1 Spots loon2
Post by: marcus3 on 09 May 2005, 01:12:28
just for the sake of us lazy guys out there (myself)
put in the cond field of your trig.
loon1 knows about loon2 == 3< the higher the number the more loon1 has to know about him. 1-4 are the only numbers that compute with the computer.
later



Title: Re:Condition: loon1 Spots loon2
Post by: Pilot on 09 May 2005, 03:22:28
Marcus3 is close, but I think there might be a problem with his suggestion:

"knows about" should be one word, and it is better to use >= or <= instead of ==

So, try this:
loon1 knowsabout loon2 >= 3

-Student Pilot
Title: Re:Condition: loon1 Spots loon2
Post by: Kundich on 09 May 2005, 16:06:04
That's right about the ">".  If you don't, the trigger may not activate because the knowsAbout score raised above the "==" before the trigger fired.  Make sense?

I had something like that happened.  Couldn't get a trigger to fire.  Hacked me off.  Furious, I got up and killed a hobo.  Then, I figured out what happened.


Thanks,
ADM
Title: Re:Condition: loon1 Spots loon2
Post by: ProudPotter2490 on 09 May 2005, 18:09:16
Hey guys!
Thanks for the help. I got it sorted! Cheers :)!
ProudPotter2490 :afro: