lua:scripting:firetemple
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lua:scripting:firetemple [2015/01/01 09:38] – vodur | lua:scripting:firetemple [2015/01/01 09:50] (current) – vodur | ||
---|---|---|---|
Line 99: | Line 99: | ||
do | do | ||
- | local cols=5 | + | local function revdir( dir ) |
- | local rows=5 | + | if dir == " |
- | local basevnum=501 | + | |
- | + | | |
- | local function getvnum( col, row) | + | |
- | return | + | end |
end | end | ||
- | local function setexflag( dir, flg) | + | --Randomized Prim's algorithm http:// |
- | if not(mob.room[dir]: | + | local walls={} |
- | olc(dir.." "..flg) | + | local maze={} |
- | end | + | |
+ | for k,v in pairs(getroom(501).exits) do | ||
+ | | ||
end | end | ||
- | local out={} | + | while #walls>0 do |
- | + | | |
- | for row=1,rows do | + | local wall=walls[wallind] |
- | local second={} | + | |
- | | + | |
- | | + | if not maze[wall.exit.toroom] then |
- | | + | |
- | | + | |
- | if room.east then | + | |
- | table.insert(out, room.east:flag(" | + | wall.exit.toroom[revdir(wall.dir)]: |
- | | + | |
- | | + | |
- | if room.south then | + | table.insert(walls, { dir=v, exit=wall.exit.toroom[v]} |
- | table.insert(second, room.south: | + | |
end | end | ||
end | end | ||
- | | + | |
+ | |||
+ | |||
end | end | ||
- | sendtochar(mob, | ||
end | end | ||
</ | </ |
lua/scripting/firetemple.1420105086.txt.gz · Last modified: 2015/01/01 09:38 by vodur