Jump to content

Problem with Perk point script


Magnusen2

Recommended Posts

Ok so i created a perk point script to use in my mod.

 

  Reveal hidden contents

 

 

It functions through a book that displays a message box in which the user can select how many points he wants.

 

The problem: The message displays fine but no notification nor perk points is given to the user.

 

Any help on this?

Edited by Magnusen2
Link to comment
Share on other sites

  On 8/11/2016 at 8:12 PM, lofgren said:

The line immediately after showing the message says that the rest of the script should only execute if the reader is not the player.

Removed that line.

 

  Reveal hidden contents

 

But now there's another problem. When i read the book a notification appears that one perk point was added, but the message box that was supposed to appear to let the player choose how many points he wants doesn't.

Link to comment
Share on other sites

If the message property isn't filled the Show() function always returns 0 which would give one perk point in your code. Double check that the property is filled. And make sure you aren't testing on a save game that had seen a previous version of that script where that property wasn't filled. Property values get stored with a saved game.

Link to comment
Share on other sites

  On 8/14/2016 at 9:53 PM, cdcooley said:

If the message property isn't filled the Show() function always returns 0 which would give one perk point in your code. Double check that the property is filled. And make sure you aren't testing on a save game that had seen a previous version of that script where that property wasn't filled. Property values get stored with a saved game.

Started a new game and the message shows up. It looks like the book is busted for my previous playthrough.

Thanks everyone.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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