Jump to content

Recommended Posts

Posted (edited)

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
Posted
  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.

Posted
  On 8/14/2016 at 2:46 AM, NexusComa said:

This part is where your problem is ... check it out. Int iButton = zxxxPerkPointBookMessage.show()

Explain how that is a problem for the OP. The syntax is correct.

Posted

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.

Posted
  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.

  • Recently Browsing   0 members

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