SCN BRArenRingQuestScript
Long Health
Long Magicka
Long Fatigue
Long pHealth
Long pMagicka
Long pFatigue
Float fQuestDelayTime
Begin GameMode
if(fquestdelaytime)
set fquestdelaytime to 1
endif
if(iskeypressed3 50) ;zum Speichern der Werte
Message "Ihr übertragt Eure Energie!"
set phealth to player.getbaseactorvalue health
player.modAV2 health -5
if(player.getav health >= 0)
set health to (health +5)
endif
set pMagicka to player.getbaseactorvalue magicka
player.modAV2 magicka -5
if(player.getav magicka >= 0)
set magicka to (magicka +5)
endif
set pFatigue to player.getbaseactorvalue fatigue
player.modav2 fatigue -5
if(player.getav fatigue >= 0)
set fatigue to (fatigue +5)
endif
Message "Im Ring: Lebenspunkte: %.0f / Magicka: %.0f / Ausdauer: %.0f" health, magicka, fatigue
elseif(iskeypressed3 49) ; zum Wiederherstellen der Werte
Message "Ihr gewinnt Energie aus dem Ring!"
if player.getAV health > 10
player.modAV2 health 10
let health += 10
endif
if player.getAV magicka > 10
player.modAV2 magicka 10
let magicka += 10
endif
if player.getAV fatigue > 10
player.modAV2 fatigue 10
let fatigue += 10
endif
Message "Im Ring: Lebenspunkte: %.0f / Magicka: %.0f / Ausdauer: %.0f" health, magicka, fatigue
else
return
endif
end