Welcome to the Builder Academy

Question Increasing LoS for Asciimap.c

More
21 Jun 2013 03:24 #3192 by Shulk
Replied by Shulk on topic Increasing LoS for Asciimap.c

Vatiken wrote: Yeah that looks like my work...

Code:
/* If not displaying world map and "tch" is within field of vision, display. -JA */ /* Field of Vision: The player is located at 25, 25 and the map draws out tiles from there. */ /* The following line displays PC/NPCs within 3 tiles EAST/WEST of the PC, and 3 tiles NORTH/SOUTH */ /* It works out to approximately 1 room... this is designed to keep NPCs from cluttering the map in largely*/ /* populated areas. */ if (!worldmap && x < 28 && x > 22 && y < 28 && y > 22) {

Not sure how to explain it any differently then I already did, but if you want to have a larger field of view you simply need to increase the x/y differential (currently 3).
Code:
if (!worldmap && x < 28 && x > 22 && y < 28 && y > 22) { == if (!worldmap && x < (25+3) && x > (25-3) && y < (25+3) && y > (25-3)) {


Ah. That is what I thought. I was messing around with. At one point I had it where it wasn't displaying with at all. I published it here on the forums and the downloads.

Owner/Programmer - Heroes Online MUD

Please Log in or Create an account to join the conversation.

Time to create page: 0.167 seconds