TheBattlesheep Posted August 28, 2017 Share Posted August 28, 2017 I'm working on a mod that does something whenever the PC gets hit, and the best way i think i can go about it is by attaching the script to the PC via a quest alias. So i made a quest that i start with some other script, made an alias for the PC, and attached a script that extends referenceAlias to the alias. The problem is, it's not executing the OnHit() event, or the OnSpellCast() event to make sure it was working. I checked the properties and they're all there. Any idea what could be wrong or some other way of doing what i want? I've also tried applying the script using a spell, but for some reason, i can't get it to cast. There's also another issue regarding aliases, in my mod, i also want to make a book that shows the value of global variables. I used https://www.creationkit.com/index.php?title=Text_Replacement To help, setting the book as a quest alias and activating the quest, but the part where i put the global just ends up blank. Link to comment Share on other sites More sharing options...
foamyesque Posted August 28, 2017 Share Posted August 28, 2017 First check: Have you confirmed that the quest has started and the alias filled via the sqv console command? Link to comment Share on other sites More sharing options...
TheBattlesheep Posted August 28, 2017 Author Share Posted August 28, 2017 First check: Have you confirmed that the quest has started and the alias filled via the sqv console command?No, it's not. I have no idea why. The script i use to start the quest uses the quest.start() command, with quest being the property, and i checked and made sure the property is filled, and the portion of script with the the start() command is being run Link to comment Share on other sites More sharing options...
foamyesque Posted August 28, 2017 Share Posted August 28, 2017 First check: Have you confirmed that the quest has started and the alias filled via the sqv console command?No, it's not. I have no idea why. The script i use to start the quest uses the quest.start() command, with quest being the property, and i checked and made sure the property is filled, and the portion of script with the the start() command is being run This is usually caused by an alias in the quest not being filled and not being optional. If a mandatory alias is not filled, the quest will not start. Can you provide screenshots of your aliases in the CK? Link to comment Share on other sites More sharing options...
TheBattlesheep Posted August 28, 2017 Author Share Posted August 28, 2017 (edited) In the one quest i tested, there's only one alias, the player alias. The window is too big for me to see everything, so i haven't touched anything not in this image. http://i.imgur.com/cNt2bSx.jpg Edited August 28, 2017 by TheBattlesheep Link to comment Share on other sites More sharing options...
foamyesque Posted August 29, 2017 Share Posted August 29, 2017 Have you tried ticking the Allow Reserved and/or Optional flags and seeing what sqv says? Link to comment Share on other sites More sharing options...
TheBattlesheep Posted August 30, 2017 Author Share Posted August 30, 2017 (edited) It still didn't do anything, but i found a solution. The quest was able to start when i created a stage and set it to that stage. This is for SE btw, i've used quests to apply scripts in oldrim with no problem without doing this, so i don't know why SE has to be different. anyway once i did this, the quest started, the alias was applied, and the script ran. EDIT: looks like this only works for console commands. i just tried to do the same thing with the script for starting it, and it's not starting it. EDIT2: NVM, looks like i had to restart the save i was testing on Edited August 30, 2017 by TheBattlesheep Link to comment Share on other sites More sharing options...
Recommended Posts