Is there a way to detect, if a certain spellblast - let's say a fireblast - explodes on a certain tile?
What I need is something similar to a receptor. But in my case the triggering spell shouldn't be a fireball but just a fireblast.
I have fiddled around with the wall-receptor but I was sure that it couldn't be that easy. I assume, the blast cannot trigger the receptor because they are not on the same tile...
Has anyone an idea?
detecting spell
Re: detecting spell
WallTriggerComponent only triggers when a projectile hits its ProjectileCollider. Since fireburst is not a projectile, you will not have good luck trying to use it.
Try HealthComponent instead.
Try HealthComponent instead.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: detecting spell
Is this Fireburst going to be spawned through a mediating script when casting?? (assuming you are casting it) As in, like:
If so then the mediating script could check for the type of tiles included in an AoE ...
Otherwise, if this is for a puzzle, a timer set to 0.001 interval checking the area of interest could detect the fireburst??
Hmm... perhaps some more info on how and why this would be happening? (without giving too much away!)
Definitely, how this fireburst would be spawned (casting or not?) would help
SpoilerShow
Code: Select all
onCast = function(champion, x, y, direction, elevation, skillLevel)
return aoeScripts.script.areaEffectSpell(champion, x, y, direction, elevation, skillLevel, "fireburst", false, "oneSquare", powerB, nil, 0, "burning")
end, Otherwise, if this is for a puzzle, a timer set to 0.001 interval checking the area of interest could detect the fireburst??
Hmm... perhaps some more info on how and why this would be happening? (without giving too much away!)
Definitely, how this fireburst would be spawned (casting or not?) would help
Labyrinth of Lies (viewtopic.php?f=14&t=4400)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Re: detecting spell
The detecting will be part of a puzzle (or a lock).
The spell is casted by the party.
The spell is casted by the party.
Re: detecting spell
You are overcomplicating this. The timer approach you mentioned is fine.akroma222 wrote:Is this Fireburst going to be spawned through a mediating script when casting?? (assuming you are casting it) As in, like:
If so then the mediating script could check for the type of tiles included in an AoE ...SpoilerShowCode: Select all
onCast = function(champion, x, y, direction, elevation, skillLevel) return aoeScripts.script.areaEffectSpell(champion, x, y, direction, elevation, skillLevel, "fireburst", false, "oneSquare", powerB, nil, 0, "burning") end,
[...]
Hmm... perhaps some more info on how and why this would be happening? (without giving too much away!)
Definitely, how this fireburst would be spawned (casting or not?) would help
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.