找回密码
 register

QQ登录

只需一步,快速开始

搜索
查看: 253|回复: 0

天龙format格式化文本的一些代号

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:273
  • 打卡月天数:23
  • 打卡总奖励:271
  • 最近打卡:2025-08-24 00:41:29
Waylee 发表于 2022-9-6 10:14 | 显示全部楼层 |阅读模式

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×
playerName = GetName( sceneId, leaderID )
#{_INFOUSR%s}   playerName

案例:

--如果玩家组队了则获取队长的名字....
        local leaderID = GetTeamLeader( sceneId, playerID )
        if leaderID ~= -1 then
                playerName = GetName( sceneId, leaderID )
        end
        
        if playerName ~= nil then
                str = format(" 踏平林阵之后,#{_INFOUSR%s}#P正欲转身离开,却发现受#cFF0000萧如筠#W溃败所倒的竹林中竟藏有绝世宝物#P,于是便欣然将其收入囊中,拍马直奔火阵而去。", playerName); --桑土公
                AddGlobalCountNews( sceneId, str )
        end


您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 ( 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 ) |网站地图|天天打卡

GMT+8, 2025-8-24 16:32 , Processed in 0.123331 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表