Jump to content

Spawning in items of a specific tint


Rosemourne

Recommended Posts

I am trying to modify the XpUpdate file of my PZ game to start me with a friendship bracelet that's brownish red on my right wrist. I do not really know anything about Java or LUA, but was able to figure out that:


    local RightWrist = playerObj:getInventory():AddItem("Base.Bracelet_RightFriendshipTINT");
    playerObj:setWornItem(RightWrist:getBodyLocation(), RightWrist);

would spawn me in with the bracelet on, but predictably of random colors. I've spent a few hours trying to look at examples of how color might be saved and put in, but couldn't figure it out. If anyone is willing to assist it would be greatly appreciated!

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