ScriptName PortableIdolofAkatoshbegin onactivate if isactionref player ==1 if player.issneaking ==1 activate player endifendifElseifshort doonceshort DayofLastUseref targetBegin OnActivateif IsActionRef player == 1 If Player.GetCrimeGold > 0 || GetPCInfamy > GetPCFame MessageBox "Seek not the Dragon's blessing, sinner!" elseif FameAkatosh == 0 MessageBox "Make a pilgrimage to a Wayshrine of Akatosh, and henceforth receive a blessing at Akatosh's holy altars." elseif FameAkatosh > 0 if GetDayofWeek == DayofLastUse MessageBox "You've already been blessed this day." else MessageBox "You make Father Akatosh proud!" Cast AltarAkatosh Player Set DayofLastUse to GetDayofWeek endif endifelse set target to GetActionRef Cast AltarAkatosh targetendifendbegin gamemodeif doonce == 0 ;days are numbered 0-6 - prevents first visit on 0 day and being told you've used it today set DayofLastUse to 10 set doonce to 1endifend
ScriptName PortableIdolofAkatoshshort doonceshort DayofLastUseref targetbegin onactivateif doonce == 0 ;days are numbered 0-6 - prevents first visit on 0 day and being told you've used it today set DayofLastUse to 10 set doonce to 1endif if IsActionRef player == 1 if player.IsSneaking == 1 Activate player elseif Player.GetCrimeGold > 0 || GetPCInfamy > GetPCFame MessageBox "Seek not the Dragon's blessing, sinner!" elseif FameAkatosh == 0 MessageBox "Make a pilgrimage to a Wayshrine of Akatosh, and henceforth receive a blessing at Akatosh's holy altars." else if GetDayofWeek == DayofLastUse MessageBox "You've already been blessed this day." else MessageBox "You make Father Akatosh proud!" Cast AltarAkatosh Player Set DayofLastUse to GetDayofWeek endif endifelse set target to GetActionRef Cast AltarAkatosh targetendifend