Jump to content

Costume menu option


Ken

Recommended Posts

I want to know how to add a costume option like "Play" for an item when you right click on it on inventory and how to make it to change the character status like health, boredom or happiness.

Link to comment
Share on other sites

 

Check if the clicked item is the item of your mod. Pseudocode:

for item in listofitems do    if item:getName() == 'awesomeModItem2' then          doAweSomeStuff(item);    endend

ok...i'm confused right now but i'll try to understand..anyway thanks for help

Link to comment
Share on other sites

What are you confused with in particular?

in the link that you gave me are 1000000 things and i don't know for sure what they are doing just by the name

i'm new on modding so can you give me a starting code?

Link to comment
Share on other sites

What are you confused with in particular?

instead of "listofitems" i put my module? and how do i "get" player? and where do i put this in the code? in the code from your tutorial

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