message fix

This commit is contained in:
shishanyue 2023-04-03 16:19:47 +08:00 committed by GitHub
parent 2f472a442d
commit d25079322a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -563,7 +563,7 @@ imageScale:1.2
#### Message-演示例子 #### Message-演示例子
A单位 A单位
``` ```ini
[core] [core]
@memory num:number @memory num:number
@ -574,7 +574,7 @@ sendMessageWithData:data1="abc",data2=1,hp=self.hp,memory1=memory.num
``` ```
> [!TIP] data1 data2这些都不用提前声明。A单位的self.customTarget1为B单位,data1为字符串,data2为数字1,hp为A单位的血量,memory1的值为num这个memory的值 > [!TIP] data1 data2这些都不用提前声明。A单位的self.customTarget1为B单位,data1为字符串,data2为数字1,hp为A单位的血量,memory1的值为num这个memory的值
B单位 B单位
``` ```ini
[hiddenAction_接受1] [hiddenAction_接受1]
#能够触发 #能够触发
autoTriggerOnEvent:newMessage(withTag="tag1") autoTriggerOnEvent:newMessage(withTag="tag1")