My ideas for RAT scripting

Trekkan

JFF Administrator
Staff member
So, I'm looking to improve the scripting of RAT. I'm not going to try and make it all encompassing or something that is a full blown scripting language because... no. =) But, I would like to be able to offer more than that is possible at the moment. Here is an example of what I'm looking at doing right now.

In a RAT Event:

Conditional:
Code:
STARTSWITH:!t||SETVAR:sw:true|SETVAR:sw=false
LEVEL:>10||SETVAR:sw:true|SETVAR:sw=false
Script:
Code:
IF VAR:sw=true
    SETVAR:TestVar:This is a test var
    say VAR:sw
END

IF VAR:sw=false
    say "This is the false script!"
END
Syntax and all of that is very much subject to change, as I'm only typing out an idea, there's no code yet to support what I have above.

Anyway, let me know what you all thing, if you see any issues or something that you think is necessary, etc.
 

senrid

New Member
is this still not fully functional? I'm trying to figure out how to setup a "!setbase" and "!base" teleport events and I'm guessing this would be the secret to setting the variable values from within the command structure.

I have a thread posted, which outlines what I'm trying to do a bit more.

Custom Teleport Event
 
Top