Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> 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
   
stripe103
post Jan 10 2012, 10:46 PM
Post #2


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




I think random movement is an option in a move route. Why don't you just use that?


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
Adrien.
post Jan 11 2012, 06:04 PM
Post #3


Bet Mapper
Group Icon

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




because I wanted to change the way they randomly move when thats selected.


__________________________



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


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: 25th May 2013 - 09:11 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker