In diesem Mod kriegst du durch meditation im MedRoom Stat-Erhöhung, wenn du den Raum verläßt, gehen die Werte langsam wieder auf Normal.
Vielleicht hilft dir das weiter .
Mfg
hochbass
Begin Inferno_MedRoomGlobal
short MedRoomSounds
;short MedRoomStatus
float MedRoomTimer
; If the player is in the meditation room, he/she gains one point for every stat every 10 seconds there up to a limit of 30
if ( GetPCCell, "Inferno's House, Meditation Chamber" == 1 )
set MedRoomTimer to ( MedRoomTimer + GetSecondsPassed )
if ( MedRoomStatus < 10 )
if ( MedRoomTimer >= 10.0 )
Player->ModIntelligence, 1
Player->ModWillpower, 1
Player->ModLuck, 1
Player->ModPersonality, 1
set MedRoomStatus to ( MedRoomStatus + 1 )
;Player->PlaySound, "skillraise"
MessageBox, "The peace and tranquility of the meditation room flows through you."
set MedRoomTimer to 0.0
endif
endif
; Throw in some code to play different sounds as you stay inside the meditation chamber
if ( MedRoomSounds == 0 )
;Inferno_flora_tree_ai_01->PlayLoopSound3DVP, "Inferno_MedRoomSound", 1.0, 1.0
Player->PlayLoopSound3DVP, "Inferno_MedRoomSound", 1.0, 1.0
;Player->PlayLoopSound3DVP, "Water Layer", 0.5, 1.0
set MedRoomSounds to 1
endif
; Once the player leaves the med room, call the clean up code below
return
endif
if ( MedRoomSounds != 0 )
;Inferno_flora_tree_ai_01->StopSound, "Inferno_MedRoomSound"
Player->StopSound, "Inferno_MedRoomSound"
;Player->StopSound, "Water Layer"
set MedRoomSounds to 0
endif
set MedRoomTimer to ( MedRoomTimer - GetSecondsPassed )
if ( MedRoomStatus > 0 )
if ( MedRoomTimer <= 0.0 )
Player->ModIntelligence, -1
Player->ModWillpower, -1
Player->ModLuck, -1
Player->ModPersonality, -1
set MedRoomStatus to ( MedRoomStatus - 1 )
;Player->PlaySound, "skillraise"
MessageBox, "You feel the peace and tranquility of the meditation room begin to slip away."
set MedRoomTimer to 60.0
endif
endif
if ( MedRoomStatus == 0 )
StopScript, "Inferno_MedRoomGlobal"
return;
endif
End
__________________ "The White Wolf of Lokken Mountain"
Releasetreath
|