#Scenario Framework Ticket System

1 messages · Page 1 of 1 (latest)

dusk ermine
#

For scenario creators...

Workshop link: https://reforger.armaplatform.com/workshop/66203B26A8E16BB5-SFTicketCounter


How to Use:

This mod contains two scripts: one for BLUFOR and one for OPFOR ticket counting.

Add the Logic Counter:
Place a SCR_ScenarioFrameworkLogicCounter entity in the world.
Set its Initial Count to the desired number (e.g., Count to = X).

Assign the Action Script:
In the Logic Counter, add the corresponding script to On Increase Action:
TicketCounterBlufor for BLUFOR
TicketCounterOpfor for OPFOR

Configure the Counter:
Title: Leave empty
Faction Key: Optional
Counter Name: Enter the exact name of the Logic Counter entity. The name here must match the name you assigned to the counter.

Set up a Slot Player Trigger:
Trigger Radius: 10000 (covers the entire map)
Activation Presence: Choose Any Character (affects all units) or Player (affects only players)
Activated By: Select US or USSR depending on which faction should activate the trigger
Custom Trigger Conditions:
Condition Type: SCR_CustomTriggerConditionsGeneric
Inner Condition: SCR_ScenarioFrameworkEntityDamageStateCondition
Damage State Checked: DESTROYED
Trigger Activation Mode: ONCE

When configured, every time a character dies, the counter updates and displays a popup message showing how many enemies remain until the counter triggers an end mission screen. This effectively converts it into a functioning Ticket Counter.

Check out the included Test World so you can see how everything is set up. It should be pretty simple.

Arma Reforger

Scripts required to enable a functional Ticket Counter for Scenario Framework.

dusk ermine
#

Update:

Scripts have been updated so that if multiple increments occur within 0.5 seconds, they are batched together and only one notification is shown reflecting the total subtraction. Previously, each increment would trigger its own popup, leading to multiple rapid messages.

This change is especially useful when an entity is configured to reduce the counter by more than one (for example, by stacking several increment actions in the same plugin). In such cases, destroying that entity will now subtract the full amount (e.g., 5 tickets) in a single notification, instead of showing five separate decrements.

The main use case is for scaling ticket losses to entity value: e.g., a single soldier kill reduces 1 ticket, while destroying a vehicle might reduce 5 tickets at once.

dusk ermine
#

Update:

To simplify setup, four prefabs have been pre-configured: BLUFOR_Trigger, OPFOR_Trigger, BLUFOR_LogicCounter, and OPFOR_LogicCounter. Drop all four into your scenario and the Ticket Counter System will be fully operational.

If you want vehicles to deduct tickets when destroyed, add an OnDestroyEvent plugin to the vehicle slot. A dedicated script/action is included for this. Under On Destroy Event, select Custom Ticket Cost. This lets you assign a specific ticket value to be subtracted whenever that vehicle or entity is destroyed.

dusk ermine
#

Scenario Framework Ticket System