Jump to content

LUA scripting


 Share

Recommended Posts

I haven't figured out how to use the forum yet, but I have a question. How can I make it so that when running the script, the script itself says to enter your amount of gold, then there is an offset from this true value through 68 lines (HEXADECIMAL) and edit this line as a double? Please, could you describe what it should look like?

Link to comment
Share on other sites

8 hours ago, Starter1 said:

I haven't figured out how to use the forum yet, but I have a question. How can I make it so that when running the script, the script itself says to enter your amount of gold, then there is an offset from this true value through 68 lines (HEXADECIMAL) and edit this line as a double? Please, could you describe what it should look like?

Firstly I'd recommend getting used to the layout of the forums the three biggest sections to be mindful of is Help, Requests, and Downloads. All pretty self explanatory but the lateral of the three is where you'll post the scripts you make and want to share

Now to answer your question about having the script ask the user for the current value of gold

gg.prompt({}, {}, {})

It takes three tables as arguments and what these arguments should/could be are found here

https://gameguardian.net/help/classgg.html#afe6c5b86ba0ae295899fd259232aac2b

I don't understand the part about the offset and 68 lines however, and this maybe what you should make your first help thread about however

Hope it helps, good luck!

Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...

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
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.