技能是这样的,也试过CreateTriggerSkill,event==sgs.GameStart,跟这个应该差不多
Init = sgs.CreateGameStartSkill{
name = "Init",
on_gamestart = function(self, player)
local room = player:getRoom()
local msg = sgs.LogMessage()
msg.type = "jineng"
room:sendLog(msg)
player:gainMark("@jineng2",1)
player:gainMark("@jineng3",1)
player:gainMark("@jineng4",1)
end
}
Init = sgs.CreateGameStartSkill{
name = "Init",
on_gamestart = function(self, player)
local room = player:getRoom()
local msg = sgs.LogMessage()
msg.type = "jineng"
room:sendLog(msg)
player:gainMark("@jineng2",1)
player:gainMark("@jineng3",1)
player:gainMark("@jineng4",1)
end
}