Forum Jump :

Author Message


Posts: 8
Rank:


Level: Member

Country: za
Location: Pretoria
Occupation: Cisco Certified Network Professional
Age: 26
In-game name: Legacy301

 
#1 Posted at 2014-01-21 11:17        
     
Hey peeps,

I need some help on Trigger Activation's/Deactivation's.

I have a Capture Point map with Repeatable Triggers, If BLUFOR is Detected in the Area then this happens ---> "Ioannina" setMarkerColor "ColorBlue"; hint "Ioannina controlled by NATO!"; Same goes for OPFOR and Independents with different colors for a Marker around the areas.

I want to add a point system to the Triggers if you capture a point/Activate a Trigger you get 20 points, but the triggers are repeatable so that player could easily stand in the area again and repeatedly get 20 points. I don't want that to happen I want it to stop giving points repeatedly.

In Other words The 1st Trigger Activates and BLUFOR Takes control you get 20 points for capturing the Area, Now OPFOR takes control of the Area and the player who captured it gets 20 points, but OPFOR can't capture the Area again/Activate the Trigger until one of the other Factions have re captured the Area.

Also if using a Once Trigger is there a way to Disable the Trigger or On Activation of Trigger1 disable Trigger2 and Trigger3 so they can be re activated.


This post was edited by Legacy301 (2014-01-24 10:57, ago)


Author Message

Crix  



Posts: 122
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2014-01-21 16:13        
     
Ahoy,

CONDITION:
this && markerColor "Ioannina" != "colorWEST"; 

ON ACT:
"Ioannina" setMarkerColor "colorWEST"; 
{ 
    _x addScore 20;
} forEach thislist;

If by "detected", you mean "in the Trigger" this should do the trick.
To Keep it simple i'd say just create three tirggers, one for each side by just changing WEST to EAST and INDEPENDENT.

If you want the dominating side to have control of the Point you should check out the following command: http://community.bistudio.com/wiki/countSide


Advertisement


Author Message


Posts: 8
Rank:


Level: Member

Country: za
Location: Pretoria
Occupation: Cisco Certified Network Professional
Age: 26
In-game name: Legacy301

 
#3 Posted at 2014-01-21 19:14        
     
# Crix : Ahoy,

CONDITION:
this && markerColor "Ioannina" != "colorWEST"; 

ON ACT:
"Ioannina" setMarkerColor "colorWEST"; 
{ 
    _x addScore 20;
} forEach thislist;

If by "detected", you mean "in the Trigger" this should do the trick.
To Keep it simple i'd say just create three tirggers, one for each side by just changing WEST to EAST and INDEPENDENT.

If you want the dominating side to have control of the Point you should check out the following command: http://community.bistudio.com/wiki/countSide

Thanks Crix your Suggestions was really helpful and I will most probably be incorporating some of it, but it's not completely relevant to what i'm looking for.

Basically I want to be able to add a Once Trigger and have it Detect if say OPFOR is present then the Trigger Activates - So now that Trigger is Active and Stays Active. I then want to have another Trigger for Detect Presence of BLUFOR also a once Trigger that Activates but then deactivates the OPFOR Trigger so it can be re Activated. If this is at all possible.


Author Message

Crix  



Posts: 122
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2014-01-22 22:23        
     
To be honest I have quite some trouble understanding what you wanna do. Maybe you should just try explaining what your game mode is like.
So from what I get:

There is an area & marker.
Once an OPFOR guy gets into that area, the marker turns RED and the guy gets 20 Points.
Now if a BLUFOR guy gets into that area, the marker turns BLUE and the guy gets 20 Points. ( regardless of any other OPFOR guys in the area ).

This post was edited by Crix (2014-01-23 19:58, ago)


Author Message


Posts: 8
Rank:


Level: Member

Country: za
Location: Pretoria
Occupation: Cisco Certified Network Professional
Age: 26
In-game name: Legacy301

 
#5 Posted at 2014-01-23 05:27        
     
# Crix : To be honost if have quite some Trouble understanding what you wanna do. Maybe you should just try explaining your game mode is like.
So from what i get:

There is an area & marker.
Once an OPFOR guy from gets into that area, the marker turns RED and the guy gets 20 Points.
Now if a BLUFOR guy gets into that area, the marker turns BLUE and the guy gets 20 Points. ( regardless of any other OPFOR guys in the area ).

Basically Yeah that's exactly how it works, but if a player keeps standing in the Trigger Area he keeps receiving the 20 points or in other words keeps Activating The Repeating Trigger. Now I managed to create a Cool Down with a script someone gave me from my other posts, but what I wanted was a way to use a single use Trigger and know if you can Deactivate it after it has been Triggered with another Trigger or by using a Repeating Trigger stopping it from Deactivating/Repeating after it has been Activated until another Trigger Deactivates it. If that makes sense.

Here are some Screens of My Map you stand in the Trigger area which is at the flag and capture the Town and on the Map the Marked area will turn to the color of your Faction or in this case Red/Green/Blue. There are three triggers on top of each other one for each faction.



Author Message

Crix  



Posts: 122
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#6 Posted at 2014-01-23 19:56        
     
Just to completly be sure about that: If there are 3 BLUFOR guys in the trigger and 1 OPFOR dude. The marker turns RED?
Appears kinda unfair, especially since the BLUFOR guys could just leave and reenter the trigger area and the trigger would turn blue again.

This post was edited by Crix (2014-01-23 20:24, ago)


Author Message


Posts: 1515
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#7 Posted at 2014-01-23 21:40        
     
Wouldn't the sector control modules be better for this?


Author Message


Posts: 8
Rank:


Level: Member

Country: za
Location: Pretoria
Occupation: Cisco Certified Network Professional
Age: 26
In-game name: Legacy301

 
#8 Posted at 2014-01-24 07:19        
     
# Crix : Just to completly be sure about that: If there are 3 BLUFOR guys in the trigger and 1 OPFOR dude. The marker turns RED?
Appears kinda unfair, especially since the BLUFOR guys could just leave and reenter the trigger area and the trigger would turn blue again.

I'm not sure about that, but the way it's working now isn't final stage it's all testing and changing so I still have allot to work on here think of this as Alpha stage now.

I'm going to implement it the way so that if there's more BLUFOR then OPFOR then BLUFOR controls the area of course and then the points system etc etc.., but right now i'm just trying things out to try and make it work in the best possible manner.

Added 6 minutes later:

# F2kSel : Wouldn't the sector control modules be better for this?

I will look into that F2kSel I have played around with it a while ago.

But if I changed the Triggers to Seized By wouldn't that also work for that?

EDIT: I messed around with the Multiplayer Sectors synced to the Game logics and Triggers I think i'm definitely going to do it with the sectors Thanks F2kSel ;)

This post was edited by Legacy301 (2014-01-24 10:56, ago)