Jump to content

Photo

Newbie question: How do I add or remove Items in the inventory


  • Please log in to reply
2 replies to this topic

#1 dr_henke

dr_henke

    Recipient of Ways

  • Members
  • Real Name:Henrik
  • Location:Uppsala, Sweden

Posted 11 June 2019 - 03:25 PM

Ok, so I just want to know a command for adding and removing items from the inventory or subscreen by event without showing it. Much the same as you can do with strings by adding \17\x to it.

 

I'm really not into scripting and I have searched for some hours without finding anything... 



#2 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 11 June 2019 - 03:56 PM

I would read `zscript.txt`. That's the docs file.

`Link->Item[itemid] = false` will remove an item (=true will add).

Item IDs are found in `std_constants.zh`, as constants starting with `I_`


  • dr_henke likes this

#3 dr_henke

dr_henke

    Recipient of Ways

  • Members
  • Real Name:Henrik
  • Location:Uppsala, Sweden

Posted 12 June 2019 - 12:27 AM

Great thanks a lot!
I've looked in zscript but diden't understood what I was looking for...


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users