Skip to content

Commit

Permalink
tweaks and fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mort65 committed Jul 30, 2024
1 parent ab31113 commit 4b62724
Show file tree
Hide file tree
Showing 20 changed files with 167 additions and 73 deletions.
Binary file modified Data/interface/translations/mrt_markofarkay se_chinese.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_czech.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_english.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_french.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_german.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_italian.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_japanese.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_polish.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_russian.txt
Binary file not shown.
Binary file modified Data/interface/translations/mrt_markofarkay se_spanish.txt
Binary file not shown.
Binary file modified Data/mrt_MarkofArkay SE.bsa
Binary file not shown.
20 changes: 19 additions & 1 deletion Data/scripts/source/zzzmoa_dhelpless_interface.psc
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ Scriptname zzzmoa_dhelpless_interface extends Quest
import zzzmoautilscript

Faction helplessFaction
Spell dhCloakSpell
Actor player

Bool bIsBusy = False

event OnEndState()
Utility.Wait(5.0)
helplessFaction = Game.GetFormFromFile(0x005379, "DeviouslyHelpless.esp") as Faction
dhCloakSpell = Game.GetFormFromFile(0x000D68, "DeviouslyHelpless.esp") as Spell
player = game.GetPlayer()
endevent

event OnInit()
Expand Down Expand Up @@ -56,6 +60,10 @@ Bool Function IsSceneRunning()
return False
endfunction

Bool function IsEnabled()
return False
endfunction

state Installed

event On_MOA_Int_PlayerLoadsGame(string eventName, string strArg, float numArg, Form sender)
Expand All @@ -66,9 +74,19 @@ state Installed
if helplessFaction == None
helplessFaction = Game.GetFormFromFile(0x005379, "DeviouslyHelpless.esp") as Faction
endIf
if dhCloakSpell == None
dhCloakSpell = Game.GetFormFromFile(0x000D68, "DeviouslyHelpless.esp") as Spell
endif
if player == None
player = game.GetPlayer()
endif
endfunction

Bool function IsSceneRunning()
return Game.getplayer().isInfaction(helplessFaction)
return player.isInfaction(helplessFaction)
endfunction

Bool function IsEnabled()
return player.hasSpell(dhCloakSpell)
endfunction
endstate
14 changes: 11 additions & 3 deletions Data/scripts/source/zzzmoarespawnscript.psc
Original file line number Diff line number Diff line change
Expand Up @@ -1422,15 +1422,16 @@ Bool function bIsArrived(ObjectReference akMarker)
if PlayerRef.GetActorValue("paralysis")
PlayerRef.ForceActorValue("paralysis", 0)
endif
Utility.Wait(6.5)
Utility.Wait(6.0)
endif
Float i = 10.0
Float i = 4.0
while (!bIsTeleportSafe(akMarker) && (i > 0.0))
Utility.Wait(0.2)
i -= 0.2
endwhile
if ReviveScript.NPCScript.isActorInSexAnimation(PlayerRef)
Debug.Trace("MarkOfArkay: The player is in a Sexlab/OStim/FlowerGirls animation and cannot teleport.")
ReviveScript.BlackScreen.Remove()
return True
endif
endif
Expand Down Expand Up @@ -1520,7 +1521,14 @@ Bool function bIsTeleportSafe(ObjectReference akMarker)
bFirstTryFailed = False
return False
endif
return !(PlayerRef.GetAnimationVariableBool("bIsSynced") || PlayerRef.GetActorValue("paralysis") || ReviveScript.NPCScript.isActorInSexAnimation(PlayerRef))
if PlayerRef.GetAnimationVariableBool("bIsSynced")
elseif PlayerRef.GetActorValue("paralysis")
elseif ReviveScript.NPCScript.isActorInSexAnimation(PlayerRef)
ReviveScript.BlackScreen.Remove()
else
return true
endif
return false
endfunction

Bool function bSendToCustomMarker(Int iSlot)
Expand Down
7 changes: 7 additions & 0 deletions Data/scripts/source/zzzmoarevivemcm.psc
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ event OnOptionDefault(Int option)
elseif (option == oidRespawnNaked)
bRespawnNaked = False
_SetToggleOptionValue(oidRespawnNaked, bRespawnNaked)
forcePageReset()
elseif (option == oidRespawnNakedOnlyIfRapedOrRobbed)
bRespawnNakedOnlyIfRapedOrRobbed = False
_SetToggleOptionValue(oidRespawnNakedOnlyIfRapedOrRobbed, bRespawnNakedOnlyIfRapedOrRobbed)
Expand Down Expand Up @@ -2085,6 +2086,7 @@ event OnOptionSelect(Int option)
elseif (option == oidRespawnNaked)
bRespawnNaked = !bRespawnNaked
_SetToggleOptionValue(oidRespawnNaked, bRespawnNaked)
forcePageReset()
elseif (option == oidRespawnNakedOnlyIfRapedOrRobbed)
bRespawnNakedOnlyIfRapedOrRobbed = !bRespawnNakedOnlyIfRapedOrRobbed
_SetToggleOptionValue(oidRespawnNakedOnlyIfRapedOrRobbed, bRespawnNakedOnlyIfRapedOrRobbed)
Expand Down Expand Up @@ -3325,6 +3327,11 @@ event OnPageReset(String page)
flags = OPTION_FLAG_DISABLED
endif
oidRespawnNakedOnlyIfRapedOrRobbed = AddToggleOption("$mrt_MarkofArkay_RespawnNakedOnlyIfRapedOrRobbed", bRespawnNakedOnlyIfRapedOrRobbed, flags)
if ((moaState.getValue() == 1) && (iNotTradingAftermath == 1))
flags = OPTION_FLAG_NONE
else
flags = OPTION_FLAG_DISABLED
endif
oidJail = AddToggleOption("$mrt_MarkofArkay_Jail", bSendToJail, flags)
oidShowRaceMenu = AddToggleOption("$mrt_MarkofArkay_ShowRaceMenu", bShowRaceMenu, flags)
oidKillIfCantRespawn = AddToggleOption("$mrt_MarkofArkay_KillIfCantRespawn", bKillIfCantRespawn, flags)
Expand Down
Loading

0 comments on commit 4b62724

Please sign in to comment.