Delete

Started by Geust, June 25, 2010, 01:15:02 am

Previous topic - Next topic

Geust

June 25, 2010, 01:15:02 am Last Edit: April 01, 2021, 05:43:16 am by earthnite
Thanks

ForeverZer0

i do believe there is commands for this in the event's move route menu.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

ForeverZer0

June 25, 2010, 08:46:08 pm #2 Last Edit: June 25, 2010, 08:50:04 pm by ForeverZero
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... :???:
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

nathmatt

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
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script