How to get the stacksize? or quanity of a stackable item

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Blichew
Posts: 157
Joined: Thu Sep 27, 2012 12:39 am

Re: How to get the stacksize? or quanity of a stackable item

Post by Blichew »

Workaround:

1. Store number of keys in a global variable (start the function to check, and set, the number of keys by using a hidden pressure plate in front of the lock).
2. Create function that will run on activation of the lock, it will return the number of keys minus 1 to the first slot in champ1 inventory.

hope this helps :)
Post Reply