SCN blabla
Long Health
Long Magicka
Long Fatigue
Long pHealth
Long pMagicka
Long pFatigue
Float fQuestDelayTime
Begin GameMode
if(fquestdelaytime)
set fquestdelaytime to 0.001
endif
label 10
if(iskeypressed3 50)
if(player.getav health <= 0 && player.getav magicka <= 0 && player.getav fatigue <= 0)
Message "Ihr könnt keine weitere Energie auf den Ring übertragen!"
Goto 10
endif
set phealth to player.getbaseactorvalue health
player.modAV2 health -20
if(player.getav health >= 0)
set health to (health +20)
endif
set pMagicka to player.getbaseactorvalue magicka
player.modAV2 magicka -20
if(player.getav magicka >= 0)
set magicka to (magicka +20)
endif
set pFatigue to player.getbaseactorvalue fatigue
player.modav2 fatigue -20
if(player.getav fatigue >= 0)
set fatigue to (fatigue +20)
endif
Message "Im Ring: Lebenspunkte: %.0f / Magicka: %.0f / Ausdauer: %.0f" health, magicka, fatigue
Goto 10
Label 20
elseif(iskeypressed3 49) ; zum Wiederherstellen der Werte
[B]player.modAV2 health +20[/B]
if(player.getav health < pHealth)
set health to (health -20)
endif
[B] player.modAV2 magicka +20[/B]
if(player.getav magicka < pmagicka)
set magicka to (magicka -20)
endif
[B]player.modav2 fatigue +20[/B]
if(player.getav fatigue < pfatigue)
set fatigue to (fatigue -20)
endif
Message "Im Ring: Lebenspunkte: %.0f / Magicka: %.0f / Ausdauer: %.0f" health, magicka, fatigue
Goto 20
else
return
endif
end