开场加战斗添加跳过到起名逻辑

tcx_xiyou_dev
wangzhenxing 2024-06-04 14:42:50 +08:00
parent cd00a28621
commit 5947ab0ece
3 changed files with 13 additions and 1 deletions

View File

@ -31,6 +31,12 @@ function GuideBattleLogic:RoleTurnChange(curRound, role)
if _config.TriggerType == 1 then
BattleManager.SetGuidePause(true)
local storyId = _config.TriggerId
if PlayerManager.jumpToCreateName then
if storyId==1250003 then
BattleManager.SetGuidePause(false)
return
end
end
StoryManager.EventTrigger(storyId, function()
BattleManager.SetGuidePause(false)
end)

View File

@ -48,7 +48,7 @@ this.dailyRedPack = 0
this.startWeek = 0
this.jumpToCreateName=false
this.RewardItemSingleShowPopupIsRoleUpStarLayout = false

View File

@ -65,7 +65,11 @@ function StoryDialoguePanel:BindEvent()
static_callBack = nil
end
else
LogError("jumpId=================="..jumpId)
self:GoNext(jumpId)
if optionID==300001 then
PlayerManager.jumpToCreateName=true
end
end
end)
end
@ -166,6 +170,8 @@ function this.RefreshPanel(eventId, isFirstOpen)
-- 跳转值
optionID = options[1]
jumpId = options[2] or 0
LogError("optionID==================="..optionID.." jumpid==========="..jumpId)
--jumpId=1250010
-- jumpId = chapterEventPointData[eventId].NextOptPanelId
-- if jumpId and jumpId ~= 0 then
-- -- jumpId = chapterEventPointData[jumpId].Option[1]