Jump to content

ways of detecting if the player has failed a stat check


TheBlob2

Recommended Posts

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

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 by TheBlob2
Link to comment
Share on other sites

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...