lua:scripting:firetemple
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lua:scripting:firetemple [2015/01/01 08:45] – created vodur | lua:scripting:firetemple [2026/10/13 19:19] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <code lua> | ||
| - | do | ||
| - | local cols=5 | ||
| - | local rows=5 | ||
| - | local basevnum=501 | ||
| - | |||
| - | local function getvnum( col, row) | ||
| - | return basevnum-1 + (row-1)*cols + col | ||
| - | end | ||
| - | |||
| - | local function setexflag( dir, flg) | ||
| - | if not(mob.room[dir]: | ||
| - | olc(dir.." | ||
| - | end | ||
| - | end | ||
| - | |||
| - | for col=1,cols do | ||
| - | for row=1,rows do | ||
| - | mdo(" | ||
| - | end | ||
| - | end | ||
| - | |||
| - | for col=1,cols do | ||
| - | for row=1,rows do | ||
| - | local vnum=getvnum(col, | ||
| - | mdo(" | ||
| - | if not(row==1) then -- do north stuff | ||
| - | olc(" | ||
| - | setexflag( " | ||
| - | setexflag( " | ||
| - | end | ||
| - | if not(row==rows) then -- do south stuff | ||
| - | olc(" | ||
| - | setexflag( " | ||
| - | setexflag( " | ||
| - | end | ||
| - | if not(col==1) then -- do west stuff | ||
| - | olc(" | ||
| - | setexflag( " | ||
| - | setexflag( " | ||
| - | end | ||
| - | if not(col==cols) then -- do east stuff | ||
| - | olc(" | ||
| - | setexflag( " | ||
| - | setexflag( " | ||
| - | end | ||
| - | end | ||
| - | end | ||
| - | |||
| - | end | ||
| - | </ | ||
lua/scripting/firetemple.1420101955.txt.gz · Last modified: by vodur
