[DiscordArchive] Are there any dungeons I can look at where an external spell cast causes a portion of script to trig
[DiscordArchive] Are there any dungeons I can look at where an external spell cast causes a portion of script to trig
Archived author: Snowcraft • Posted: 2025-03-21T12:47:57.304000+00:00
Original source
Are there any dungeons I can look at where an external spell cast causes a portion of script to trigger?
![[Image: image.png?ex=690bf057&is=690a9ed7&hm=0f4...7333746c5&]](https://cdn.discordapp.com/attachments/870722120458600528/1352624887285551206/image.png?ex=690bf057&is=690a9ed7&hm=0f41dacaa63760bb245d41e9aa8bb76f5b363cd9d900453b201f7167333746c5&)
Archived author: Snowcraft • Posted: 2025-03-21T12:48:23.731000+00:00
Original source
I want to change this to run on a spell cast finishing as a trigger.
![[Image: image.png?ex=690bf057&is=690a9ed7&hm=0f4...7333746c5&]](https://cdn.discordapp.com/attachments/870722120458600528/1352624887285551206/image.png?ex=690bf057&is=690a9ed7&hm=0f41dacaa63760bb245d41e9aa8bb76f5b363cd9d900453b201f7167333746c5&)
Archived author: Tea • Posted: 2025-03-21T13:00:29.933000+00:00
Original source
it depends on what effects the spell has
Archived author: Tea • Posted: 2025-03-21T13:01:41.743000+00:00
Original source
if it uses SEND_EVENT effect then you can use ProcessEvent in instance script
Archived author: Tea • Posted: 2025-03-21T13:02:20.116000+00:00
Original source
otherwise you need to write a spellscript and put the code in a AfterCast hook
Archived author: Snowcraft • Posted: 2025-03-21T13:11:19.496000+00:00
Original source
Well, I can modify the spell.
Archived author: Snowcraft • Posted: 2025-03-21T13:12:18.004000+00:00
Original source
Is SEND_EVENT different to 'send script event'?
![[Image: image.png?ex=690bf6d2&is=690aa552&hm=8a3...3bad8acda&]](https://cdn.discordapp.com/attachments/870722120458600528/1352631845434429501/image.png?ex=690bf6d2&is=690aa552&hm=8a39307438e1f84cbe0606459a09cdeccad0512e8565b54ef5ebb653bad8acda&)
Archived author: Snowcraft • Posted: 2025-03-21T13:16:02.755000+00:00
Original source
It is apprently. So it's sending event 8502.
![[Image: image.png?ex=690bf6d2&is=690aa552&hm=8a3...3bad8acda&]](https://cdn.discordapp.com/attachments/870722120458600528/1352631845434429501/image.png?ex=690bf6d2&is=690aa552&hm=8a39307438e1f84cbe0606459a09cdeccad0512e8565b54ef5ebb653bad8acda&)
![[Image: image.png?ex=690bf746&is=690aa5c6&hm=419...9d6300a47&]](https://cdn.discordapp.com/attachments/870722120458600528/1352632331797528576/image.png?ex=690bf746&is=690aa5c6&hm=41913828f6ef7f28a24ac16d075a369da1f4077cf57314252dda0c29d6300a47&)
Archived author: Snowcraft • Posted: 2025-03-21T13:17:58.764000+00:00
Original source
So, something like this, with EVENT_AWAKEN_SOULFLAYER being defined as event 8502?
![[Image: image.png?ex=690bf746&is=690aa5c6&hm=419...9d6300a47&]](https://cdn.discordapp.com/attachments/870722120458600528/1352632331797528576/image.png?ex=690bf746&is=690aa5c6&hm=41913828f6ef7f28a24ac16d075a369da1f4077cf57314252dda0c29d6300a47&)
Archived author: Tea • Posted: 2025-03-21T13:19:44.007000+00:00
Original source
yes