Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Tactical Battle- Enemy move Range set to 0 but still moves?!

Alright, Im using gubidi's TBS and I'm supposed to be able to set enemy move ranges. but I need a STATIONARY enemy in one of my battles, so I go to the script and set the move range for this particular enemy to 0. But when I test out the battle, it still moves just as much as the others? What's going on? Here's what I was supposed to change:

Code:
 

 

#------------------------------------------------------------

  # Set move_range by monster_id

  #------------------------------------------------------------

  def self.enemy_move(enemy_id)

    list = []

    case enemy_id

    when 1; r = 3 #Guard

    when 2; r = 4 #Bandit

    when 3; r = 4 #Goblin

    when 5; r = 3 #Risen Dead

    when 6; r = 3 #Skeleton

    when 8; r = 0 # Crystal

    else; r = 4

    end

  end

Any help please? This kinda screw up the whole point of this particular battle,
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top