Jump to content
  • 0

Make a Cell wakable not standable to attack


Zell

Question


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

Hello.

I want to make a cell where it is walkable but not standable when attacking. I can obtain this behavior when mob is only walking.

I use water cells to make my mobs do not stop in this cell while random walk (it works), but when they search a monster and goes to attack, they ignore this condition and stop in water cells.

unknown.png

with no enemies, walk and stop only in not water cells

unknown.png

but when fighting (they have 3 of attack range)

unknown.png

Already changed the map_getcell with a new chkcell to something like return (!cell.wakable && cell.water) but it does not work.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

3 hours ago, Zell said:

Hello.

I want to make a cell where it is walkable but not standable when attacking. I can obtain this behavior when mob is only walking.

I use water cells to make my mobs do not stop in this cell while random walk (it works), but when they search a monster and goes to attack, they ignore this condition and stop in water cells.

unknown.png

with no enemies, walk and stop only in not water cells

unknown.png

but when fighting (they have 3 of attack range)

unknown.png

Already changed the map_getcell with a new chkcell to something like return (!cell.wakable && cell.water) but it does not work.

cant you just make the grid bigger and give them more range ?

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

On 9/11/2019 at 6:23 AM, Naruto said:

cant you just make the grid bigger and give them more range ?

 

Doest not matter the range. Ranged monster when attacking sometimes stand in a water cell too.

@Cydh maybe you can give me some direction? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...