DavaScript Posted February 20, 2022 Share Posted February 20, 2022 I'm a little new to the GECK, and I'm coming from the Oblivion Construction Set. Using the Construction Set with OBSE, I've simply used the "OnDrinkPotion" event handler to trigger when the player drinks a potion. Seeing that there is no such event handler for New Vegas, I'm having a little trouble with this simple task. How would I handle this? Link to comment Share on other sites More sharing options...
DarkFaeGaming Posted February 21, 2022 Share Posted February 21, 2022 I'm pretty rookie with it myself, but what sort of effect are you trying to have happen with this script? Link to comment Share on other sites More sharing options...
DavaScript Posted February 21, 2022 Author Share Posted February 21, 2022 I'm pretty rookie with it myself, but what sort of effect are you trying to have happen with this script? Just for the script to say "Hi" when the player drinks, let's say, a beer. Link to comment Share on other sites More sharing options...
DarkFaeGaming Posted February 21, 2022 Share Posted February 21, 2022 I'm pretty rookie with it myself, but what sort of effect are you trying to have happen with this script? Just for the script to say "Hi" when the player drinks, let's say, a beer. XD Fair. I think I have an idea, but let me boot up the GECK again tonight or tomorrow morning, and I'll let you know. Because I have the idea, but not the words to describe what I'm thinking lol. I need to poke around at it myself anyway, so I'll check this quickly when I'm at it. Link to comment Share on other sites More sharing options...
DavaScript Posted February 21, 2022 Author Share Posted February 21, 2022 I'm pretty rookie with it myself, but what sort of effect are you trying to have happen with this script? Just for the script to say "Hi" when the player drinks, let's say, a beer. XD Fair. I think I have an idea, but let me boot up the GECK again tonight or tomorrow morning, and I'll let you know. Because I have the idea, but not the words to describe what I'm thinking lol. I need to poke around at it myself anyway, so I'll check this quickly when I'm at it. I appreciate the help :) Link to comment Share on other sites More sharing options...
DarkFaeGaming Posted February 21, 2022 Share Posted February 21, 2022 I'm thinking a "GetIsUsedItem" function is what you'd need. Again, I'm rookie at scripts, but I'm thinking that is what you'd need. Possibly attached to the items you want. Link to comment Share on other sites More sharing options...
sullyvanj93 Posted February 22, 2022 Share Posted February 22, 2022 I too am kind of green when it comes to scripting, but I do a lot of work with dialogue and I always use the IsSpellTarget and then point to the ingestible I want it to reference, since each drink has it's own spell. Regular scripts might be different from my dialogue uses though, so please feel free to disregard if I'm blowing wind :laugh: Link to comment Share on other sites More sharing options...
DavaScript Posted February 22, 2022 Author Share Posted February 22, 2022 I'm thinking a "GetIsUsedItem" function is what you'd need. Again, I'm rookie at scripts, but I'm thinking that is what you'd need. Possibly attached to the items you want. Doesn't work unfortunately. I'll just have to keep diggin... Link to comment Share on other sites More sharing options...
DavaScript Posted February 22, 2022 Author Share Posted February 22, 2022 I've found the solution. This function is actually added by the JIP NVSE Plugin: SetOnUseAidItemEventHandler Link to comment Share on other sites More sharing options...
Recommended Posts