So... we see you haven't signed up here on our website.  

Do you really want to sit here and be "Unregistered" all your life?  No, of course you don't!  So, click this here link and you'll take that all important first step into enlightenment! (or something, whatever...)

[DOC] RAT Events (Intro)

Discussion in 'General' started by Trekkan, Dec 25, 2016.

  1. Trekkan

    Trekkan JFF Administrator Staff Member

    Creating events in RAT may look a bit daunting at first, but hopefully with the below explanation things will be more clear. One thing to know is that you don't HAVE to ever touch the RAT events. The system exists in case you would like to modify events (such as localization of text), or create new events. RAT comes with all of the default events already created for you.

    Please reference the screenshot above, as all below statements will be in reference to it.

    Event List

    The event list is simple a list of all events that RAT has in the database. Clicking on an event will allow you to edit it.​


    Whether or not the event is enabled. This way, you can create events, test them, turn them off, or otherwise disable a feature that you might not want to use. You can then re-enable it later if you wish.​


    This is just a friendly name for you to remember the event, it can be any thing you wish as it is not used anywhere but in the event editor.​


    RAT has many different types of events, depending on the event you choose, different variables (data) are available to you. More will be explained on that later.​


    This is set to "User" for all events you'll create. This way I can keep track of the events required by RAT, and not overwrite your events. It is possible this will be deprecated soon, but I wanted to comment on it as it is currently there.​


    The order in which an event will be processed. Meaning, if you have 5 events for "Player Connected", you might want them to fire off in a specific order. Setting the order here will do just that.​


    The content of this field will vary greatly depending on the event type. Generally it is not used, but is mostly used for the "Player Public Chat" event. In that case, you would add in say "!test" to perform the commands in the "Script" section when a player types !test in the game chat.​


    Everything above, leads to this. Each line within this section will be processed. You can include the Custom RAT commands, or any console command available to you from the default 7D2D server, or any mods you might have installed. I'll go into more detail in another post on this section, but for now, please view the events already created to get a general understanding of what you can do.​
    • Useful Useful x 1
  2. Trekkan

    Trekkan JFF Administrator Staff Member

    Event Name: TEXT MATCH

    Description: Matches any text that comes through the console. This *IS* CaSe SenSiTivE!


    You can have multiple parameters by separating them with two || (pipes).
    All parameters are considered as OR logic, meaning either one will be considering a match. There is currently no AND logic.
    • Useful Useful x 1

Share This Page