Alpine Level Design: Difference between revisions

From Red Faction Wiki
No edit summary
No edit summary
Line 7: Line 7:
<div class="column">
<div class="column">
{{Infobox RF1Event
{{Infobox RF1Event
|eventname      =  
|eventname      = Sequence
|category      = AF_Flow
|category      = AF_Flow
|description    =  
|description    = Each activation of this event routes the message to the next link in sequential order. After the last link, the cycle resets and the first link is called. Note the order of links is determined by the order in which you add them.
|on            =  
|on            = Send an on signal to the next link in the sequence.
|params        = * ''':''' P
|params        = * '''last_link_index:''' (int, hidden) Stores the last activated link index. When processing a received on signal, the next index in the links array after this is used.
}}
{{Infobox RF1Event
|eventname      = Difficulty_Gate
|category      = AF_Flow
|description    = Tests if the game is set to the specified difficulty and forwards messages only if true.
|on            = Forward on signal to all links, if the game is set to the specified difficulty.
|params        = * '''difficulty:''' (int, "Life") Set the difficulty to test against. 0 = easy, 1 = medium, 2 = hard, 3 = impossible
}}
{{Infobox RF1Event
|eventname      = Valid_Gate
|category      = AF_Flow
|description    = Tests if the specified UID is a valid object and forwards messages only if true. In the case of objects that have life values (ie. clutter and entities), "valid" means alive.
|on            = Forward on signal to all links, if the specified object is valid.
|params        = * '''check_uid:''' (int, "Life") Object UID to be checked.
}}
}}
</div><div class="column>
</div><div class="column>
{{Infobox RF1Event
{{Infobox RF1Event
|eventname      =  
|eventname      = Switch_Random
|category      = AF_Flow
|description    = Randomly select one of this event's links and send an on signal to it.
|on            = Send an on signal to a randomly selected link.
}}
{{Infobox RF1Event
|eventname      = Fixed_Delay
|category      = AF_Flow
|category      = AF_Flow
|description    =  
|description    = Identical to the normal Delay event, but cannot be retriggered. Will forward a message to all links after the specified delay. Messages sent to this event while a message is queued are ignored.
|on            =  
|on            = Queue a message to be forwarded after the configured delay.
}}
}}
</div><div style="clear: both;"></div>
</div><div style="clear: both;"></div>

Revision as of 21:53, 24 November 2024



This page lists all new event scripting objects available in Alpine Faction.

AF_Flow

Icon Event E.png

Sequence

Each activation of this event routes the message to the next link in sequential order. After the last link, the cycle resets and the first link is called. Note the order of links is determined by the order in which you add them.
On Response
Send an on signal to the next link in the sequence.
Off Response
None
Parameters
  • last_link_index: (int, hidden) Stores the last activated link index. When processing a received on signal, the next index in the links array after this is used.
Icon Event E.png

Difficulty_Gate

Tests if the game is set to the specified difficulty and forwards messages only if true.
On Response
Forward on signal to all links, if the game is set to the specified difficulty.
Off Response
None
Parameters
  • difficulty: (int, "Life") Set the difficulty to test against. 0 = easy, 1 = medium, 2 = hard, 3 = impossible
Icon Event E.png

Valid_Gate

Tests if the specified UID is a valid object and forwards messages only if true. In the case of objects that have life values (ie. clutter and entities), "valid" means alive.
On Response
Forward on signal to all links, if the specified object is valid.
Off Response
None
Parameters
  • check_uid: (int, "Life") Object UID to be checked.
Icon Event E.png

Switch_Random

Randomly select one of this event's links and send an on signal to it.
On Response
Send an on signal to a randomly selected link.
Off Response
None
Parameters
No additional parameters.
Icon Event E.png

Fixed_Delay

Identical to the normal Delay event, but cannot be retriggered. Will forward a message to all links after the specified delay. Messages sent to this event while a message is queued are ignored.
On Response
Queue a message to be forwarded after the configured delay.
Off Response
None
Parameters
No additional parameters.

AF_General

Icon Event E.png

On Response
Off Response
None
Parameters
  • : P
Icon Event E.png

On Response
Off Response
None
Parameters
No additional parameters.

AF_Utility

Icon Event E.png

On Response
Off Response
None
Parameters
  • : P
Icon Event E.png

On Response
Off Response
None
Parameters
No additional parameters.