TheBlob2 Posted April 3, 2015 Share Posted April 3, 2015 is there a way for a script to detect when the player fails a stat check in dialog without altering the quest in the geck? Link to comment Share on other sites More sharing options...
DopeChuck Posted April 3, 2015 Share Posted April 3, 2015 Not completely sure about this one. However you could try a script that does an action if the player "whatever" ActorValue is less than the required amount. See example script below. scn YourScriptNameHereScript Begin if player.GetAV statname < RequiredAmount ;do something endif End And run your script whenever the player clicks on the dialogue you want to run the check on. Make sure to replace statname with whatever stat you want to check (I.E. GetAV Speech) You can also replace GetAV with GetActorValue. You can find the documentation for GetActorValue here.Remember, when developing a mod, the GECK wiki will be your best friend. Link to comment Share on other sites More sharing options...
TheBlob2 Posted April 3, 2015 Author Share Posted April 3, 2015 (edited) Not completely sure about this one. However you could try a script that does an action if the player "whatever" ActorValue is less than the required amount. See example script below. scn YourScriptNameHereScript Begin if player.GetAV statname < RequiredAmount ;do something endif End And run your script whenever the player clicks on the dialogue you want to run the check on. Make sure to replace statname with whatever stat you want to check (I.E. GetAV Speech) You can also replace GetAV with GetActorValue. You can find the documentation for GetActorValue here.Remember, when developing a mod, the GECK wiki will be your best friend.no, what i really mean is like a script constantly running the the background that activates a specific function whenever the player fails a stat check Edited April 3, 2015 by TheBlob2 Link to comment Share on other sites More sharing options...
DopeChuck Posted April 3, 2015 Share Posted April 3, 2015 Not completely sure about this one. However you could try a script that does an action if the player "whatever" ActorValue is less than the required amount. See example script below. scn YourScriptNameHereScript Begin if player.GetAV statname < RequiredAmount ;do something endif End And run your script whenever the player clicks on the dialogue you want to run the check on. Make sure to replace statname with whatever stat you want to check (I.E. GetAV Speech) You can also replace GetAV with GetActorValue. You can find the documentation for GetActorValue here.Remember, when developing a mod, the GECK wiki will be your best friend.no, what i really mean is like a script constantly running the the background that activates a specific function whenever the player fails a stat check Not sure about the failing a stat check part. But to make it constantly running you could try using Begin GameMode. Maybe you could try setting a quest variable "YourModPlayerFailedCheck" and set it to 1 whenever they fail a check, then set it back to 0 at the end of the background script. Or something along those lines. Not sure how good it would work though. Link to comment Share on other sites More sharing options...
Ladez Posted April 4, 2015 Share Posted April 4, 2015 To my knowledge, this is not possible. Best you can do is use what has been suggested. To do what you want, you would need to treat each possible stat check individually--not exactly practical. Link to comment Share on other sites More sharing options...
Recommended Posts