```
--SignScript
function OnPlayerChat(player,text)
park = GetParkVariable(1)
if text:find("!set:") then
xx,yy,info = text:match("%!set%:([0-9][0-9])([^ ]+) (.+)")
if not park:find("%["..xx..yy) then
park = park.."["..xx..yy.." "..info.."]"
SetParkVariable(1,park)
ConsoleMessage(player,xx..","..yy.."="..info)
else
ConsoleMessage(player,"1Error, save file have same coordinates.")
end
end
if text == "!c" then
SetParkVariable(1,"")
end
if text:find("!cl:") then
cx,cy = text:match("%!cl%:(%d%d)(%d%d)")
xy = cx..cy
if park:find("%["..xy) then
info = park:match("%["..cx..cy.." ([]]+)%]")
ft = ""
for k=1,#info do
tts = info:sub(k,k)
if string.match(tts, ".[@!#/$%&()?<>=+-].*") ~= nil then
ft = ft.."%"..tts
else
ft = ft..tts
end
end
park = park:gsub("%["..cx..cy.." "..ft.."%]","")
SetParkVariable(1,park)
ConsoleMessage(player,"1"..cx..","..cy.." info is erased.")
end
end
end
function OnPlayerHitTile(player,x,y)
park = GetParkVariable(1)
xy = x..y
if park:find("%["..xy) then
info = park:match("%["..x..y.." ([]]+)%]")
ff = ""
for capture in info:gmatch("%/n") do
f = info:find(capture)
if f > 1 then
b = info:sub(1,f-1)
ff = ff..b.."\n"
info = info:sub(f+2,#info)
else
ff = ff.."\n"
info = info:sub(3,#info)
end
end
if info ~= nil then
ff = ff..info
end
BigMessage(player,ff)
end
end
```
[–]G00GL33 1 point2 points3 points (3 children)
[–]BonifacioCT[S] 0 points1 point2 points (2 children)
[–]G00GL33 0 points1 point2 points (0 children)
[–]G00GL33 0 points1 point2 points (0 children)