PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionPlayerSetName.lua
2022-12-26 14:06:01 +05:30

21 lines
No EOL
530 B
Lua

----------------------------------------------------------------
--玩家改名检测
local XRedPointConditionPlayerSetName = {}
local Events = nil
function XRedPointConditionPlayerSetName.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_PLAYER_SET_NAME)
}
return Events
end
function XRedPointConditionPlayerSetName.Check()
if XPlayer.ChangeNameTime == 0 then
return true
end
return false
end
return XRedPointConditionPlayerSetName