Thread: map backgrounds
View Single Post
  #12  
Old 12-01-2002, 03:05 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Quote:
Originally posted by Warcaptain
i think a good command would be


showmap index,x,y;


to show the map that is selected for the player at a certain x,y

that way you can remove the aspect of pressing m to view the map, or maybe make a special looking map, or an item that opens your map.. i dunno.
Normally you know which maps there are on your world.
So you could just do
NPC Code:

if (onmapx(level13.graal) >= 0) showimg 200,map.png,...
else if (onmapx(tyhmmoon_a-1.graal) >= 0) showimg 200,moonmap.png,...


(onmapx returns on which x-position a level is on the map. It is -1 when the level isn't on the current map).
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote