Jump to content

How to use the addbutton command? - Slime Rancher (Srml)


GachaLifeWolf

Recommended Posts

  • 2 years later...

If you want to make a buttin that fastforwards the time by 6 in game hours and you want it to be labled TIME,

 

you type it like addbutton <Identifier> <TIME> 'fastforward 6'

 

 

 

When entering the Identifier it can be anything it just cant be one that you've already used for another one.

 

When entering the <command> part type the command like normal and replace the "<" and ">" with single quotation marks (These ones 'my name is Jeff')

 

 

 

I hope this helped, i tried all the different ways of enclosing a phrse and that finally worked

Link to comment
Share on other sites

  • 2 weeks later...

The error message "The 'addbutton' command got more arguments then expected (Had: 5; Max: 3)" means that you are trying to use the addbutton command with more than 3 arguments. The addbutton command takes 3 arguments:

  1. The name of the button
  2. The text that should be displayed on the button
  3. The function that should be called when the button is clicked

If you are trying to use the addbutton command with more than 3 arguments, you will get the error message.

To fix this error, you need to remove the extra arguments from your command. For example, if you are trying to use the command like this:

addbutton button1 "This is a button" function1 function2

You would need to change it to this:

addbutton button1 "This is a button" function1

 

This will remove the extra arguments and the command will work as expected.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...