corrado33 Posted September 29, 2018 Share Posted September 29, 2018 (edited) I have a spell that I've made that I ONLY want to work if it hits a crafting station, so I... well... I cheated and copied the fury spell effect (InfluenceAggUp or whatever it is) and deleted all of the conditions. Then I added my own conditions. You can see them here. However, the spell works regardless of what I cast it on. Works on any containers, which is NOT what I want. Other spells that I have that select the nearest X references to the player using the exact same keywords work properly. (I literally copied and pasted the conditions.) I also tried adding the conditions to the spell itself. That also did not work. Am I doing something wrong? Everything else works here, I just want to limit what the spell can be cast on. EDIT: I wonder if it's because the spell is hitting the activator and not the station. But that doesn't seem to be right, the selected station glows correctly, and I'd imagine the activator isn't the same shape as the station itself. But I will check regardless. EDIT2: I think I'm an idiot. To get the reference I used the 'GetCurrentMousePositionRef()" or whatever it is, not whatever the function is to get the spell target... I'll.... uh.... be right back. EDIT3: I have no idea what the command is for getting what a projectile.... hits. Unsure if there is one... searching. EDIT4: I think the original game just did it with scripts on the spell effect itself using "akTarget". Since the code would be the same there or in my script.... I'll just keep it in my script and not have another one. It's an ugly if statement, but it'll work. EDIT5: Ok it wasn't an ugly if statement, I just used a formlist, a loop, and a bool. Edited September 29, 2018 by corrado33 Link to comment Share on other sites More sharing options...
foamyesque Posted September 30, 2018 Share Posted September 30, 2018 Crafting stations aren't containers, they're furniture. Without seeing your full condition list it's a little hard to say, but I *suspect* you have a condition at the end looking for Containers ORed with the rest of the list, so your spell will work on any container and any furniture with the crafting keywords. The best way to diagnose errors in your conditional list is to simplify it to the maximum extent. Add a condition to look for just one keyword, remove the rest, and see what happens. Link to comment Share on other sites More sharing options...
Recommended Posts