changes
This commit is contained in:
@@ -80,8 +80,8 @@ NilIsZero={
|
||||
end }
|
||||
|
||||
function MakeMap()
|
||||
local rad=2
|
||||
for x=-rad,rad do for y=-rad,rad do
|
||||
local rad=6
|
||||
for x=-rad,rad do for y=-rad,rad do if math.random(1,5)==1 then
|
||||
t={class='army',x=x,y=y,z=0,plane='main',graphic='army'}
|
||||
print("Building an army:")
|
||||
pprint(t)
|
||||
@@ -94,7 +94,7 @@ function MakeMap()
|
||||
end end
|
||||
print("Here's what was built:")
|
||||
pprint(nt)
|
||||
end end
|
||||
end end end
|
||||
end
|
||||
|
||||
--
|
||||
@@ -217,7 +217,7 @@ function seq(a,b,c) return a<=b and b<=c or false end
|
||||
function num2(a) if a<=9 then return " "..a else return a end end
|
||||
|
||||
function player.cb_map(actor,place,dialog)
|
||||
local rad=1
|
||||
local rad=4
|
||||
scratch={}
|
||||
local lis=tangible.near(actor,1.5*rad,true,false)
|
||||
print("\27[38;5;9mMap:\27[0m")
|
||||
|
||||
@@ -8,7 +8,6 @@ end
|
||||
function login.cb_becomeplayer(actor, place, dialog)
|
||||
actor.kind='P'
|
||||
actor.Count={}
|
||||
actor.Count.Foobar=42
|
||||
setmetatable(actor.Count,NilIsZero)
|
||||
tangible.setclass(actor, player)
|
||||
tangible.animate(actor,{action="warp",plane="main",x=0,y=0,z=0})
|
||||
|
||||
Reference in New Issue
Block a user