[ian-reeds-games] Re: Scripters

  • From: "Carlos Macintosh" <sleepio1@xxxxxxxxxxx>
  • To: <ian-reeds-games@xxxxxxxxxxxxx>
  • Date: Sun, 20 Jan 2013 04:45:05 -0500


Hmm, what's wrong with this code? It's supposed to just say how long and high the ma is,. But it does not.

//map overview
var map_l=shared.map.width
var map_h=shared.map.height
function debug(l)
{
   if (l.k != l.key || l.m != l.mod) {
return; // it's not the key combination we are supposed to respond to.
}
say("look, the map has a  width of "+map_l+" and a height of "+map_h+"!")

}

Other related posts: