Jump to content

"Add Item" Button with multiple dropdown values


the1h3r0

Recommended Posts

Okay so I'm trying to write a script that generates the MySQL code for a DayZ inventory using simple dropdowns.  The code format for the mysql code is:

[["primaryweapon","secondaryweapon"],["item1","item2",...etc]]

I know how I'm going to use dropdown lists to fill in the primary and secondary weapons, but not so much for the items.  All the items in DayZ will be in this one dropdown list and I want it to be so when you select which item you want and click an "Add Item" button it will echo a live output of the code so far.  I'm not sure how to make it so the next item in the code is filled in properly all using one dropdown list.  Is there any way of accomplishing this?  Sorry if it's a bad explination as to what I need, I just really don't know how to describe it.  Essentially I want it to look like this:

 

dropdown.png

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.