Script not being called.

Post » Mon Jun 18, 2012 8:29 pm

I'm trying to write a script for a book which when read grants a perk. Here's my script as it stands. (Thanks to Cipscis for helping me out with the syntax)

Scriptname AddThunderPerkScript extends ObjectReference;{Adds Heart of Thunder perk upon reading (at least it's supposed to)}Perk Property ThunderPerk  Auto;{Defines the perk.}Event OnRead()	debug.trace("thunder script is running")	if  !Game.GetPlayer().HasPerk(ThunderPerk)		Game.GetPlayer().AddPerk(ThunderPerk)		Debug.Notification("You truly possess the Heart of Thunder.")	endifEndEvent

After trying many different configurations and suggestions from others, no matter what I do it has no effect in game. I checked the logs and found quite literally no trace in the logs. The 'debug.trace' line should run wether the perk is added or not. This leads me to beileve that the script isn't being called when it should.
User avatar
Emily abigail Villarreal
 
Posts: 3433
Joined: Mon Aug 27, 2007 9:38 am

Post » Tue Jun 19, 2012 4:12 am

I've seen some books have OnActivate and OnEquipped events instead of OnRead as Book2CommonExplorersGuideToSkyrim.. No idea what makes them different than others though...
User avatar
Connie Thomas
 
Posts: 3362
Joined: Sun Nov 19, 2006 9:58 am

Post » Mon Jun 18, 2012 5:31 pm

I've seen some books have OnActivate and OnEquipped events instead of OnRead as Book2CommonExplorersGuideToSkyrim.. No idea what makes them different than others though...

I'll give OnActivate a shot and see what happens.

EDIT: Same result. Nothing in game and no trace in the log.
User avatar
Siobhan Wallis-McRobert
 
Posts: 3449
Joined: Fri Dec 08, 2006 4:09 pm


Return to V - Skyrim

cron