How to check Spell is cast at Location?

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
SpacialKatana
Posts: 163
Joined: Fri Sep 14, 2012 6:20 pm

How to check Spell is cast at Location?

Post by SpacialKatana »

Is there a way to trigger a set of events by checking the party has cast a certain spell at location x,y?

ie like when you summon the vines.
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: How to check Spell is cast at Location?

Post by Prozail »

The vines summon is done via a usable item (prob. through the onUseItem-hook, and checking party location)
If you want to do the same thing with a spell you'll prob. need to go through the onCastSpell-hook:

PartyComponent.onCastSpell(self, champion, spell)
SpacialKatana
Posts: 163
Joined: Fri Sep 14, 2012 6:20 pm

Re: How to check Spell is cast at Location?

Post by SpacialKatana »

That's kind of helpful, but I'll be doing it without an item, ie needing a way to check party casts the spell when stood somewhere. it's how I do it without a trigger being used etc.
Post Reply