creating a new room seems to make a loop which hangs

Post Reply
TheUltimateMap
Posts: 10
Joined: Thu Jul 11, 2013 9:14 pm

creating a new room seems to make a loop which hangs

Post by TheUltimateMap »

Right now, I have an area with the name of Terrinor an ID number of 1. It is in grid mode.

In this area I already have a single happy room, with a coordinate of (-1250/-1250/0)

Now, using a slightly different method than was used to create this room, I am trying to create another room right next to it.

I have an alias with the name of `createroom and a pattern of `createroom. The Substitution field has been left blank...
Code: [show] | [select all] lua
local addRoom, setRoomArea, setRoomCoordinates = addRoom, setRoomArea, setRoomCoordinates

local r = 2
local y = -1250
local x = -1149
addRoom(r)
setRoomArea(r,1)
setRoomCoordinates(r,x,y,0)
centerview(r)
Now when I type `createroom into Mudlet, it starts processing but never stops. It just hangs presumably looping.

I have tried this code with an without the locals.

Any suggestions?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: creating a new room seems to make a loop which hangs

Post by Heiko »

local addRoom, setRoomArea, setRoomCoordinates = addRoom, setRoomArea, setRoomCoordinates
What's this supposed to be :)

Put debug messages into your script to find out where Mudlet hangs. If it hangs in any of the mapper functions, post a copy of your map file please.


Post Reply