RacerPlume Posted April 4, 2019 Share Posted April 4, 2019 I'm trying to figure out a way to add spell effects to NPCs in the area of the Player, depending on the conditions defined in a script. Imagine a magic necklace that will weaken all NPCs in the area without the Player having to do anything but wear it. But I cannot figure out how to do this. My best guess so far was to frequently place an activator box around the Player. And use GetStandingActor to detect when an NPC is inside it. But even after that, I don't know of a way to apply effects to the NPCs when this happens. Maybe I could also make the same activator cast an AoE spell when this happens, but that would mean constant spell castings and that's certainly no good. Any ideas? Link to comment Share on other sites More sharing options...
leonardo2 Posted April 4, 2019 Share Posted April 4, 2019 (edited) Nevermind, misread the OP. Edited April 4, 2019 by leonardo2 Link to comment Share on other sites More sharing options...
RubberMan01 Posted April 22, 2019 Share Posted April 22, 2019 (edited) That would require a script on every NPC mate. i.e. Short once If ( GetDistance Player < 256 )if ( once == 0 )AddSpell xxxxx ; (Curse)Set once to 1endifElseif ( GetDistance Player > 256)if ( once == 1 )RemoveSpell xxxxendifEndif Edited April 22, 2019 by RubberMan01 Link to comment Share on other sites More sharing options...
RacerPlume Posted May 23, 2019 Author Share Posted May 23, 2019 That would require a script on every NPC mate. Thanks for the reply. Yea, I definitely don't want to add a script to every NPC. Haha. I think I need to give up on this particular idea. Link to comment Share on other sites More sharing options...
Recommended Posts