Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
c7a3bcf0
Commit
c7a3bcf0
authored
Dec 30, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Interim - Testing
parent
5ce875a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
gamedata/cache/dialogue_1.php
gamedata/cache/dialogue_1.php
+13
-1
include/game/item.func.php
include/game/item.func.php
+3
-0
No files found.
gamedata/cache/dialogue_1.php
View file @
c7a3bcf0
...
...
@@ -39,6 +39,13 @@ $dialogues = Array
4
=>
'你似乎看到了,听到了,感觉到了一个模糊的场景,<br>但你不知道这是什么。'
,
5
=>
'大量类似的场景掠过你的脑海,而你已经无力吸收。<br>你浑身疼痛,不禁口吐鲜血,无助地等待着一切结束。'
,
),
//TESTING ONLY - DELETE THIS WHEN DEPLOYING
'testingDialog'
=>
Array
(
0
=>
'这是测试对话第一页'
,
1
=>
'这是测试对话第二页'
,
2
=>
'现在给出选择支'
,
),
);
# 单组对白中哪一页对话会显示头像:
...
...
@@ -56,12 +63,17 @@ $dialogue_log = Array
(
'thiphase'
=>
"<span class='lime'>※ 权限重载完成,控制模块已解锁。</span><br>……这又是什么时候的事?<br><br>"
,
'club21entry'
=>
"<span class='yellow'>虽然打开了蛋,但你被其中的<span class='glitchb'>数据风暴</span>狂暴吸入,受到了大量的伤害!</span><br>你屁滚尿流地重新站了起来。<br><br>"
,
'testingDialog'
=>
"<span class='yellow'>测试已结束!</span><br><br>"
,
);
# 单组对白结束时提供选择肢:
$dialogue_branch
=
Array
(
'testingDialog'
=>
Array
(
0
=>
'选项A'
,
1
=>
'选项B'
,
2
=>
'选项C'
,
),
);
# 单组对白结束提供特殊结束按钮(非必须、仅在结束对白会触发特殊事件时调用):
...
...
include/game/item.func.php
View file @
c7a3bcf0
...
...
@@ -3258,6 +3258,9 @@ function itemuse($itmn,&$data=NULL) {
$pa
=
fetch_playerdata_by_pid
(
1
);
$pd
=
fetch_playerdata_by_pid
(
2
);
\revcombat\rev_combat_prepare
(
$pa
,
$pd
,
1
);
}
elseif
(
$itm
==
'对话测试器'
){
$clbpara
[
'dialogue'
]
=
'testingDialog'
;
$clbpara
[
'noskip_dialogue'
]
=
1
;
}
elseif
(
$itm
==
'事件BGM替换器'
){
// 这是一个触发事件BGM的案例,只要输入$clbpara['event_bgmbook'] = Array('事件曲集名'); 即可将当前曲集替换为特殊事件BGM
// 特殊事件曲集'event_bgmbook'的优先级高于地图曲集'pls_bgmbook',前者存在时后者不会生效
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment