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
  • Gender:Male
  • Location:Uppsala, Sweden

Posted 11 June 2019 - 02: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 venrob

venrob

    Scripter / Dev

  • ZC Developers
  • Real Name:Rob
  • Gender:Male

Posted 11 June 2019 - 02: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
  • Gender:Male
  • Location:Uppsala, Sweden

Posted 11 June 2019 - 11:27 PM

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


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users