Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Chaze007 on February 23, 2008, 09:31:54 pm

Title: [RESOLVED] main help please need this
Post by: Chaze007 on February 23, 2008, 09:31:54 pm
hey i was wondering if there was a roll die script or event system,

example:
trigger is die land on 6=walk 6 steps left
and they have random rolling, is that possible?
Title: Re: main help please need this
Post by: winkio on February 23, 2008, 09:47:40 pm
why yes, it is possible.  rand(6) will roll a six sided die for you, but the numbers you get will be 0,1,2,3,4, and 5.  So just add one to your outcome.  then you can make a for loop that makes the person walk the number of steps in the variable.
Title: Re: main help please need this
Post by: Fantasist on February 24, 2008, 06:22:26 am
Hm, I thought that'll gie the numbers 0 to 6.
Title: Re: main help please need this
Post by: winkio on February 24, 2008, 12:33:15 pm
nope, that gives 6 possible outcomes, not the numbers one to six.  I don't know why it's built that way, but it is.
Title: Re: main help please need this
Post by: Chaze007 on February 24, 2008, 01:10:30 pm
k i didnt wanna start a new topic but im making a mini similar to that zelda orcarina of time game, where you use your slingshot or bow to shoot the moving rupies. well i know the moving command but how do i get it where when u press the button. it shows an animation of an arrow. and if the arrow touches the rupee it dies? this is more important tha the roll die one XD please help
Title: Re: main help please need this
Post by: winkio on February 24, 2008, 02:20:19 pm
you can just make it so that when you press the button, it creates a new event.  That even is the arrow, and then set both the rupee and the arrow to destroy themselves on Event touch.  Then the rupee can manage the score.
Title: Re: main help please need this
Post by: Chaze007 on February 24, 2008, 05:38:24 pm
ahh so i have to make a new movement system for the arrow ehhh XD ima try this