Jump to content
Sign in to follow this  
SalahTobasi

How to make a working prompt list?

Recommended Posts

Hey 

I could use some help in the Prompt list as I have no idea about linking it to a exact value so it can be changed as the amount I select. 

Same as the slider, an example would be useful.. Thanks in advance ♥ 

Screenshot_20190623-011608.jpg

Screenshot_20190622-090122.jpg

Share this post


Link to post
Share on other sites

Read api help. There was examples.

Share this post


Link to post
Share on other sites
1 hour ago, Enyby said:

Read api help. There was examples.

I did and saw the examples, still couldn't figured it out to link it to the Prompt list such as Search a value and edit it. That's where im stuck 

Share this post


Link to post
Share on other sites

Use type "number".

Share this post


Link to post
Share on other sites
21 hours ago, Enyby said:

Use type "number".

Ik that, u don't get it.. 

I mean I want to search for a certian value and use the prompt list now how can I link the prompt list to the value I want to search so the results change.. 

e.g

gg.prompt(

    {'Set the amount u want. '},

    {[3]=0},

    {[3]='number'})

Now how can I search for a value and  change the value by the amount selected from the prompt list, that is what I meant by linking it 

If there is an example that would be awesome.. 

Share this post


Link to post
Share on other sites

Get the value into a variable. Use this variable where necessary - in the search string, using string concatenation, or as a parameter when getting the number of results. Or as a value to change.
Learn programming and Lua. These are basic things.

See how other scripts are made. The same search string script.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...