Console commands

Any information about the fun attribute is given here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Console commands

#1

Post by Lobby »

Commands are defined using the meta tag that can be defined in any plugin. It will look like:

Code: Select all

"meta":{
  "tags":{
    "console":{
      "commands":{
        "mycommand":{
            "condition":{...},
            "actions":[...]      // Just a normal fun transition object
        }
      }
    }
  }
}
Writing mycommand into the console would execute the transition(s).

User avatar
robyns1
Settler
Posts: 3
Joined: 16 Feb 2024, 20:03

Plugin Creator

Platform

Re: Console commands

#2

Post by robyns1 »

I know this topic is *really* old, but uhh...
Can you give an exampleee of a command that uses conditions n'(and) stuff? Like a command that returns stuff from the game? if you even see this lol

User avatar
JustAnyone
Developer
Posts: 3579
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Console commands

#3

Post by JustAnyone »

Code: Select all    Reset

{ "id":"$ja_seasons_console01", "type":"template", "active":true, "meta":{"tags":{"console":{ "commands":{ "enable auto seasons":{ "actions":[ {"type":"set","id":"!_seasonsja","code":"0"}, {"type":"feedback","id":"Automatic seasons enabled"} ] } } }}} }
JSON checker
Check

User avatar
robyns1
Settler
Posts: 3
Joined: 16 Feb 2024, 20:03

Plugin Creator

Platform

Re: Console commands

#4

Post by robyns1 »

what

User avatar
Sihtelgoog!$
Settler
Posts: 1
Joined: 12 Feb 2025, 20:55

Re: Console commands

#5

Post by Sihtelgoog!$ »

plugins

Post Reply Previous topicNext topic

Return to “Fun attribute”