Is there a way to get the ID of triggering item?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Arodin
Posts: 5
Joined: Wed Apr 18, 2012 6:13 pm

Is there a way to get the ID of triggering item?

Post by Arodin »

Is there a way within a script to get the Item ID for the item that has triggered the script?

For example, if a door can be triggered by placing an item on any one of four different alcoves, is there a way for the script to know which alcove has triggered it? Or would you need four separate scripts in this case, one for each alcove, with the alcove item ID's specifically referenced within each script?
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: Is there a way to get the ID of triggering item?

Post by Prozail »

Post Reply