Quote from: Crimson Wizard on Tue 20/12/2016 18:54:42Thanks, that was very helpful, I've tried a similar thing as they did in this thread, but i've been doing it wrong all this time
There was a discussion in response to similar question, where people gave several methods to solve this trouble:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=54124.0
Quote from: Snarky on Tue 20/12/2016 19:07:45
That describes ways of moving it out of GlobalScript, but I'm not sure there is a way to make the code actually any shorter. Because you do have to define what happens in every possible combination of items, unless you want to just fall back on some default response.
If you always want "Use X with Y" to give the same response as "Use Y with X", it might be possible to save a few lines, but I can't see a way to do it without adding some complexity up front, and with only six or seven items it might not be worth it.
i was mostly concerned with the length of code in GlobalScript, so moving it out is just fine for me, even if it increases the amount of actual code i write