C´est juste un choisi au pif pour que tu me dise si on parle bien de la meme chose lol !
[quote]ScriptName AltarofAkatosh
short doonce
short DayofLastUse
ref target
Begin OnActivate
if IsActionRef player == 1
If Player.GetCrimeGold > 0 || GetPCInfamy > GetPCFame
MessageBox "Vous avez été béni en ce jour."
elseif FameAkatosh == 0
MessageBox "Vous faites la fierté du père Akatosh !"
elseif FameAkatosh > 0
if GetDayofWeek == DayofLastUse
MessageBox "Vous avez déjà été béni aujourd´hui."
else
MessageBox "Vous êtes la fierté de Père Akatosh !"
Cast AltarAkatosh Player
Set DayofLastUse to GetDayofWeek
endif
endif
else
set target to GetActionRef
Cast AltarAkatosh target
endif
end
begin gamemode
if 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 1
endif
end [/quote]