|
|
|
@ -872,13 +872,6 @@ Weapon Property _01E_07_SteelDagger Auto |
|
|
|
|
|
|
|
|
|
Function PrepareCardgame() |
|
|
|
|
|
|
|
|
|
If PlayerRef.GetItemCount(Gold001)<20; Failsafe, falls Player kein Gold hat |
|
|
|
|
PlayerRef.AddItem(Gold001, 20, true) |
|
|
|
|
EndIf |
|
|
|
|
|
|
|
|
|
If _00E_FS_NQ02_EsmeREF.GetItemCount(Gold001)<20 ; Failsafe, falls Esme kein Gold hat |
|
|
|
|
_00E_FS_NQ02_EsmeREF.AddItem(Gold001, 20, true) |
|
|
|
|
EndIf |
|
|
|
|
OpenCardInterface() |
|
|
|
|
;CardgameVar1 = 1 -> Spiel 1 gewonnen |
|
|
|
|
;CardgameVar1 = 2 -> Spiel 1 verloren |
|
|
|
@ -915,15 +908,40 @@ Function PlayCards() |
|
|
|
|
EndFunction |
|
|
|
|
|
|
|
|
|
int Function Step01() ; place your bet |
|
|
|
|
|
|
|
|
|
If PlayerRef.GetItemCount(Gold001) < 20; Failsafe, falls Player kein Gold hat |
|
|
|
|
PlayerRef.AddItem(Gold001, 20, true) |
|
|
|
|
EndIf |
|
|
|
|
|
|
|
|
|
If _00E_FS_NQ02_EsmeREF.GetItemCount(Gold001) < 160 ; Failsafe, falls Esme kein Gold hat |
|
|
|
|
_00E_FS_NQ02_EsmeREF.AddItem(Gold001, 160, true) |
|
|
|
|
EndIf |
|
|
|
|
|
|
|
|
|
; need to calculate the max bet first |
|
|
|
|
If _00E_FS_NQ02_EsmeREF.GetItemCount(Gold001) > PlayerRef.GetItemCount(Gold001) |
|
|
|
|
MaxBet = (PlayerRef.GetItemCount(Gold001))/2 |
|
|
|
|
MaxBet = PlayerRef.GetItemCount(Gold001) / 2 |
|
|
|
|
ElseIf _00E_FS_NQ02_EsmeREF.GetItemCount(Gold001) < PlayerRef.GetItemCount(Gold001) |
|
|
|
|
MaxBet = (_00E_FS_NQ02_EsmeREF.GetItemCount(Gold001))/2 |
|
|
|
|
MaxBet = _00E_FS_NQ02_EsmeREF.GetItemCount(Gold001) / 2 |
|
|
|
|
Else |
|
|
|
|
MaxBet = (PlayerRef.GetItemCount(Gold001))/2 |
|
|
|
|
MaxBet = PlayerRef.GetItemCount(Gold001) / 2 |
|
|
|
|
EndIf |
|
|
|
|
PlayerBet = (((self as QUEST) as FORM) as UILIB_1).ShowTextInput(PlaceYourBet .GetName()+MaxBet, MaxBet) as int |
|
|
|
|
|
|
|
|
|
if EnderalFunctions.TextInputEnabled() |
|
|
|
|
PlayerBet = (((self as QUEST) as FORM) as UILIB_1).ShowTextInput(PlaceYourBet.GetName()+MaxBet, MaxBet) as int |
|
|
|
|
else |
|
|
|
|
int iFallbackBet = _SAG_PlaceYourBet_FallbackMessageEsme.Show() |
|
|
|
|
|
|
|
|
|
if iFallbackBet == 3 |
|
|
|
|
PlayerBet = 80 |
|
|
|
|
elseif iFallbackBet == 2 |
|
|
|
|
PlayerBet = 50 |
|
|
|
|
elseif iFallbackBet == 1 |
|
|
|
|
PlayerBet = 20 |
|
|
|
|
else |
|
|
|
|
PlayerBet = 10 |
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
If PlayerBet > MaxBet || PlayerBet == 0 |
|
|
|
|
Step01() |
|
|
|
|
RETURN 0 |
|
|
|
@ -936,7 +954,7 @@ int Function Step01() ; place your bet |
|
|
|
|
GlobalBet = OpponentBet + PlayerBet |
|
|
|
|
_00E_FS_NQ02_PC_BetMessage.Show(PlayerBet, OpponentBet, GlobalBet) |
|
|
|
|
EnemyPurse.EnableNoWait(true) |
|
|
|
|
RegisterForKey(14) |
|
|
|
|
RegisterForKey(14) ; not doing anything? |
|
|
|
|
RegisterForKey(271) |
|
|
|
|
Step02() |
|
|
|
|
Return PlayerBet |
|
|
|
@ -1089,7 +1107,9 @@ Function FinishGameAndClearUp() |
|
|
|
|
PlayerREF.MoveTo(_00E_FS_NQ02_PlayerChairREF) |
|
|
|
|
|
|
|
|
|
EnablePlayerControls() |
|
|
|
|
SetGameSettingString("sCharGenControlsDisabled", s_chargeninitialtext) |
|
|
|
|
if SKSE.GetVersion() |
|
|
|
|
SetGameSettingString("sCharGenControlsDisabled", s_chargeninitialtext) |
|
|
|
|
endif |
|
|
|
|
SetInChargen(abDisableSaving = false, abDisableWaiting = true, abShowControlsDisabledMessage = false) |
|
|
|
|
|
|
|
|
|
EndFunction |
|
|
|
@ -1131,6 +1151,7 @@ Spell Property dunReanimateSelf Auto |
|
|
|
|
Actor Property Commentator Auto |
|
|
|
|
|
|
|
|
|
Message Property PlaceYourBet Auto |
|
|
|
|
Message Property _SAG_PlaceYourBet_FallbackMessageEsme Auto |
|
|
|
|
|
|
|
|
|
GlobalVariable Property ExAequo Auto |
|
|
|
|
GlobalVariable Property WonGames Auto |
|
|
|
@ -1185,4 +1206,4 @@ Sound Property _00E_TavernGames_DiceRollM Auto |
|
|
|
|
Sound Property _00E_MAGFXFireOilIgniteLow Auto |
|
|
|
|
Sound Property _00E_FS_Phasmalist_EnterWorld_Male Auto |
|
|
|
|
|
|
|
|
|
MiscObject Property Gold001 Auto |
|
|
|
|
MiscObject Property Gold001 Auto |
|
|
|
|