6Domino6 Posted March 4, 2012 Share Posted March 4, 2012 So I'm using the following script to add a perk to a player and I can't get the sound to work. I did define the "Sound Property Learned Auto" and the script works on all 3 instances but the sound doesn't play. I'm probably going about it the wrong way, but I've tried looking into other papyrus that play sounds and their method doesn't work for me either. Any suggestions or help would be appreciated. Scriptname DB_SoulSiphon extends ObjectReference {Adds Soul Siphon} Perk Property SoulSiphon auto Game Property Player Auto Sound Property Learned Auto Event OnRead() If ((game.getplayer().hasperk(SoulSiphon) == 0) && (game.getplayer().getactorvalue("Enchanting") >= 40)) Game.GetPlayer().AddPerk(SoulSiphon) Learned.play(self) debug.MessageBox("You've learned the perk Soul Siphon!") else if game.getplayer().hasperk(SoulSiphon) == 1 debug.notification("You've already learned this!") endif if ((game.getplayer().hasperk(SoulSiphon) == 0) && (game.getplayer().getactorvalue("Enchanting") < 40)) debug.notification("You can't learn this yet!") endif endif EndEvent Link to comment Share on other sites More sharing options...
Recommended Posts