Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spell trigger squares #169

Open
picobyte opened this issue Feb 23, 2020 · 1 comment
Open

spell trigger squares #169

picobyte opened this issue Feb 23, 2020 · 1 comment

Comments

@picobyte
Copy link
Contributor

Allow for squares that act like a trigger when a magic spell (e.g. firebolt) is casted on them. The square should consist of a symbol that indicates the spell that should be used. This would require casting spells in non-combat mode.

@Grokmoo
Copy link
Owner

Grokmoo commented Feb 29, 2020

this is largely doable now - abilities can only be targeted on entities, so you would need to make a dummy neutral actor and give it the appropriate appearance. then, add an on_damaged or on_effect_applied hook to the actor's AI.

The only trouble, as you say, is that most spells currently cannot be used outside combat. some mechanism would be needed for overriding this. I don't want to just blanket allow spells outside combat because of the potential for script breakage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants