Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> when telling an NPC to randomly move
Adrien.
post Jan 10 2012, 03:08 PM
Post #1


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




Is this located in the scripts any where? I would love to bash it in. When you create an NPC and state "move about the board randomly" is that located any where?


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Philip
post Jan 12 2012, 10:19 PM
Post #2


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 325
Type: Developer
RM Skill: Masterful




In a new project go to Game_Character and look at lines 684-694. The default code is below.

CODE
  #--------------------------------------------------------------------------
  # * Move at Random
  #--------------------------------------------------------------------------
  def move_random
    case rand(4)
    when 0;  move_down(false)
    when 1;  move_left(false)
    when 2;  move_right(false)
    when 3;  move_up(false)
    end
  end


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 04:15 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker