mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-23 12:11:24 +00:00
22 lines
462 B
Text
22 lines
462 B
Text
|
-- test script for ELua/Lunatic Interpreter
|
||
|
|
||
|
print('--- ELua Test script ---')
|
||
|
|
||
|
local i
|
||
|
|
||
|
print('tweaking sector pals')
|
||
|
for i = 0, gv.numsectors/2 do
|
||
|
sector[i].floorpal = 1;
|
||
|
sector[i].ceilingpal = 2;
|
||
|
end
|
||
|
|
||
|
print(gv.numsectors)
|
||
|
print(gv.numwalls)
|
||
|
|
||
|
print('--- end test script ---')
|
||
|
|
||
|
--sector[-1].ceilingpal = 4; -- this must FAIL!
|
||
|
--sector[0].wallnum = 0; -- as must this
|
||
|
--gv.numsectors = 4 -- and this
|
||
|
--sector[4] = sector[6] -- this is forbidden, too
|