Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Geust on June 25, 2010, 01:15:02 am

Title: Delete
Post by: Geust on June 25, 2010, 01:15:02 am
Thanks
Title: Re: Event movement modification
Post by: ForeverZer0 on June 25, 2010, 06:46:43 pm
i do believe there is commands for this in the event's move route menu.
Title: Re: Event movement modification
Post by: ForeverZer0 on June 25, 2010, 08:46:08 pm
Quote from: earthnite on June 25, 2010, 08:27:07 pm
it can move randomly in four directions, but not 8, even though it can move in 8 directions


Isn't there a command for moving "toward bottom left", etc? (or something like that)
I don't have my game up and running right now, so I can't see for myself.

I'm pretty sure there is. I vaguely remember using it before, though it could have been a hallucination... :???:
Title: Re: Event movement modification
Post by: nathmatt on June 25, 2010, 09:10:02 pm
try this this should rewrite the random command to add the other directions

class Game_Character  
 
  #--------------------------------------------------------------------------
  # * Move at Random
  #--------------------------------------------------------------------------
  def move_random
    case rand(7)
    when 0
      move_lower_left
    when 1  # Move down
      move_down(false)
    when 2
       move_lower_right
    when 3  # Move left
      move_left(false)
    when 4
       move_upper_left
    when 5  # Move right
      move_right(false)
    when 6
      move_upper_right
    when 7  # Move up
      move_up(false)
    end
  end
 
end