Well, I couldn't find anything wrong with it either, but as you guys probably know by now, I only know enough about this stuff to be VERY dangerous, lol. As for testing it, each button displays like they should and when I press them the message box goes away as it should, it simply does not display my message or add the bonus.
making multiple calls to GetButtonPressed in the same frame is wrong. This is documented in the wiki page.
OK, my mistake.
Have you separately tested the messageboxes in the gamemode block to make sure they appear?
How exactly would I test them? Is there a console command like player.showmessage mymessage or something I should use to test it in game?
Have you entered the modav command at the console to see it is having the effect you want? (I haven't used modav, I use setav, and reading the wiki pages on the two makes me more confused on the difference.)
The vanilla bobbleheads all used modav for the skill bonuses, so I'm just using what they already were using. I could easily be wrong, but I thought modav would add points to a given skill, like player.modav repair 20 would add 20 to your repair skill. But I thought setav would set that skill at whatever number you tell it to. Like player.setav repair 20 would set the players repair skill to 20.
Let me know how you suggest I test this as I don't really know what else to test. Like I said, the buttons are working they just don't display my message or add to the skill.
Thanks David!