Posted by Foxlegend Ex.: The npc´s position is (3,4) and he is facing down, so his view range will be the positions from (3,5) to (3,8), if there´s no wall at this line. I don´t know if I made myself clear now. But thanks anyway =)
![]()
on 2/19/2005, 4:29 pm, in reply to "A _little_ help"
200.98.115.4
I´ll try the "read pass block (x,y)", thanks! But I´m trying to make a view range to each npc on the map.
--Previous Message--
: Read in the Plotscript dictionary under "Tweaking
: Maps". There is a section on Read Pass Block
: (x,y) that _may_ be of some help. I assume that when
: you mention the NPC 'seeing' the hero, you mean that
: the NPC is on the same viewable portion of the map as
: the hero. In this case, you could check all the tiles
: around the hero using the Read Pass Block and if one
: of the tiles is a wall, the NPC will not 'see' you
: through it. This could be achieved by getting the
: hero's position and checking the tiles around him by
: using a series of X++N and Y++N, where X is the hero's
: X position on the map and Y is the hero's Y position,
: in a loop structure.
:
: Hope this helps a little on the thought process
: atleast!
:
Message Thread:
![]()
« Back to thread