新手引导:引导MOMO

This commit is contained in:
fatiao 2025-11-03 11:01:24 +08:00
parent df18f2ca54
commit fffb099632
5 changed files with 13 additions and 430 deletions

View File

@ -33,10 +33,10 @@ local ForceGuideCfg = {
},
[3]={
['Id']=3,
['Group']=3,
['Group']=2,
['Type']=0,
['UIId']=2,
['Path']='role.icon',
['UIId']=142,
['Path']='searchTabBtn',
['MaskCloseDelayTime']=500,
['MaskCloseTime']=500,
['MaskOpenTime']=0,

View File

@ -14,8 +14,8 @@ local StoryCfgV2 = {
['Skip']=false,
['PlayInterval']=5,
['ProgramControl']=true,
['NeedSave']=false,
['ForceGuideGroup']=10001,
['NeedSave']=true,
['ForceGuideGroup']=0,
['Condition']={5,10001},
},
[10002]={
@ -33,8 +33,8 @@ local StoryCfgV2 = {
['Skip']=false,
['PlayInterval']=5,
['ProgramControl']=true,
['NeedSave']=false,
['ForceGuideGroup']=10002,
['NeedSave']=true,
['ForceGuideGroup']=2,
['Condition']={5,10002},
},
[99999]={

View File

@ -1,425 +1,5 @@
local StroyPerformCfgV2 = {
[1]={
['Id']=1,
['StoryId']=10135,
['Type']=0,
['LeftAct']='RoleMovein',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['Camp']={0},
['CfgId']={1},
['Dir']={90},
['DirStartTime']={0},
['AniName']={'f_coming_02'},
['AniStartTime']={0},
['Eff']={10023},
['EffStartTime']={0},
['OverTime']=900,
},
[2]={
['Id']=2,
['StoryId']=10135,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10135001',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[3]={
['Id']=3,
['StoryId']=10135,
['Type']=0,
['LeftAct']='RoleBackoff',
['LeftActBgTime']=0,
['RightAct']='RoleMovein',
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightName']='player',
['RightNameColour']='title01',
['RightImg']='player',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[4]={
['Id']=4,
['StoryId']=10135,
['Type']=0,
['LeftAct']='RoleBackoff',
['LeftActBgTime']=0,
['RightAct']='RoleSpeaking',
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightName']='player',
['RightNameColour']='title01',
['RightImg']='player',
['SpeakSite']=2,
['SpeakId']='RP10135002',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[5]={
['Id']=5,
['StoryId']=10135,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightAct']='RoleBackoff',
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightName']='player',
['RightNameColour']='title01',
['RightImg']='player',
['SpeakSite']=1,
['SpeakId']='RP10135003',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[6]={
['Id']=6,
['StoryId']=10135,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightAct']='RoleBackoff',
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightName']='player',
['RightNameColour']='title01',
['RightImg']='player',
['SpeakSite']=1,
['SpeakId']='RP10135004',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[7]={
['Id']=7,
['StoryId']=10135,
['Type']=0,
['LeftAct']='RoleMoveout',
['LeftActBgTime']=0,
['RightAct']='RoleMoveout',
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightName']='player',
['RightNameColour']='title01',
['RightImg']='player',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[8]={
['Id']=8,
['StoryId']=10136,
['Type']=0,
['LeftAct']='RoleMovein',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[9]={
['Id']=9,
['StoryId']=10136,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10136001',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[10]={
['Id']=10,
['StoryId']=10136,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10136002',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[11]={
['Id']=11,
['StoryId']=10136,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10136003',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[12]={
['Id']=12,
['StoryId']=10136,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10136004',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[13]={
['Id']=13,
['StoryId']=10136,
['Type']=0,
['LeftAct']='RoleMoveout',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[14]={
['Id']=14,
['StoryId']=10137,
['Type']=0,
['LeftAct']='RoleMovein',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[15]={
['Id']=15,
['StoryId']=10137,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10137001',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[16]={
['Id']=16,
['StoryId']=10137,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10137002',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[17]={
['Id']=17,
['StoryId']=10137,
['Type']=0,
['LeftAct']='RoleMoveout',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[18]={
['Id']=18,
['StoryId']=10138,
['Type']=0,
['LeftAct']='RoleMovein',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[19]={
['Id']=19,
['StoryId']=10138,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10138001',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[20]={
['Id']=20,
['StoryId']=10138,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10138002',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[21]={
['Id']=21,
['StoryId']=10138,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10138003',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[22]={
['Id']=22,
['StoryId']=10138,
['Type']=0,
['LeftAct']='RoleSpeaking',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=1,
['SpeakId']='RP10138004',
['SpeakTime']=0,
['WordTime']=10,
['OverTime']=0,
},
[23]={
['Id']=23,
['StoryId']=10138,
['Type']=0,
['LeftAct']='RoleMoveout',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[29]={
['Id']=29,
['StoryId']=10139,
['Type']=0,
['LeftAct']='RoleMoveout',
['LeftActBgTime']=0,
['RightActBgTime']=0,
['LeftName']='RPName007',
['LeftNameColour']='title02',
['LeftImg']='HeroDraw/Npc_02',
['RightNameColour']='title01',
['SpeakSite']=0,
['SpeakTime']=0,
['WordTime']=0,
['OverTime']=0,
},
[999991]={
['Id']=999991,
['StoryId']=99999,

View File

@ -405,10 +405,10 @@ end
function LuaGameMgr:CheckPlayCurrLevelStory()
local levelUniqueId = ManagerContainer.LuaBattleMgr:GetCurLevelUniqueId()
local levelCfgData = ManagerContainer.CfgMgr:GetLevelDataById(levelUniqueId)
LogError(Inspect(levelCfgData))
if levelCfgData['DlgContentId'] and levelCfgData['DlgContentId'] > 0 then
local storyId = levelCfgData['DlgContentId']
local condition = levelUniqueId
LogError("LuaGameMgr:CheckPlayCurrLevelStory levelUniqueId="..levelUniqueId.." storyId="..storyId)
ManagerContainer.LuaEventMgr:Dispatch(UIEventNames.UISTORY_CONDITION_TRIGGER,
Enum.UIStoryCondType.LevelStory, condition, storyId)
end

View File

@ -98,6 +98,9 @@ end
function UIStoryMgr:GetNextStory(storyId)
local storyData = ManagerContainer.CfgMgr:GetStoryDataById(storyId)
local storyDatas = ManagerContainer.DataMgr.StoryData:GetStoryDatas()
if storyData.SelectionNext == nil then
return nil
end
storyId = storyData.SelectionNext[storyDatas[storyId]]
storyData = ManagerContainer.CfgMgr:GetStoryDataById(storyId)
if storyData then
@ -245,7 +248,7 @@ function UIStoryMgr:StoryUIStartOrOver(status, idx)
local storyId = curStoryData.Id
storyPlayStatus = false
curStoryData = nil
--ManagerContainer.LuaEventMgr:Dispatch(UIEventNames.UI_FORCE_GUIDE_TRIGGER, Enum.ForceGuideTriggerEnum.Story, storyId)
ManagerContainer.LuaEventMgr:Dispatch(UIEventNames.UI_FORCE_GUIDE_TRIGGER, Enum.ForceGuideTriggerEnum.Story, storyId)
ManagerContainer.LuaUIMgr:ClosePage(Enum.UIPageName.UIStory)
end