The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: DrHojo on January 08, 2009, 12:15:57 PM

Title: Pickpocketing Help please?
Post by: DrHojo on January 08, 2009, 12:15:57 PM
I am trying to work out how to do pickpockting. i made the skill and animation also on the common events for the skill. i made it so i get some gold between one to ten using variables but what i cant work out is how to make it say "You have Pickpockted the (amount of gold)" not this move has no effect. also be able to work with a 50% chance instead of all there time, help please.
Title: Re: Pickpocketing Help please?
Post by: modern algebra on January 08, 2009, 02:33:04 PM
That post is unreadable. Punctuation is important. See:

Quote
    Dear John I want a man who knows what love is all about you are generous kind thoughtful people who are not like you admit to being useless and inferior you have ruined me for other men I yearn for you I have no feelings whatsoever when we're apart I can be forever happy will you let me be yours

    Gloria




    Dear John,

    I want a man who knows what love is all about. You are generous, kind, thoughtful. People who are not like you admit to being useless and inferior. You have ruined me for other men. I yearn for you. I have no feelings whatsoever when we're apart. I can be forever happy - will you let me be yours?

    Gloria




    Dear John,

    I want a man who knows what love is. All about you are generous, kind, thoughtful people who are not like you. Admit to being useless and inferior. You have ruined me. For other men, I yearn. For you, I have no feelings whatsoever. When we're apart, I can be forever happy. Will you let me be?

    Gloria
Title: Re: Pickpocketing Help please?
Post by: DrHojo on January 08, 2009, 02:45:47 PM
Quote from: Modern Algebra on January 08, 2009, 02:33:04 PM
That post is unreadable. Punctuation is important. See:

Quote
    Dear John I want a man who knows what love is all about you are generous kind thoughtful people who are not like you admit to being useless and inferior you have ruined me for other men I yearn for you I have no feelings whatsoever when we're apart I can be forever happy will you let me be yours

    Gloria




    Dear John,

    I want a man who knows what love is all about. You are generous, kind, thoughtful. People who are not like you admit to being useless and inferior. You have ruined me for other men. I yearn for you. I have no feelings whatsoever when we're apart. I can be forever happy - will you let me be yours?

    Gloria




    Dear John,

    I want a man who knows what love is. All about you are generous, kind, thoughtful people who are not like you. Admit to being useless and inferior. You have ruined me. For other men, I yearn. For you, I have no feelings whatsoever. When we're apart, I can be forever happy. Will you let me be?

    Gloria

well it is readable but has bad grammar i cant help that sorry am not really that great at grammar i will try and edit my main post.
Title: Re: Pickpocketing Help please?
Post by: modern algebra on January 08, 2009, 02:50:33 PM
Well, I'm not sure what you're asking. It sounds like you know how to call the common event but don't know how to make it say "I stole etc"

But that's not hard at all: All you need is a Show Text command put after the Gain Gold command. But it seems impossible that you wouldn't have tried that.
Title: Re: Pickpocketing Help please?
Post by: DrHojo on January 08, 2009, 03:03:21 PM
well i made a common event with a variable and put it in a skill what gets me one to ten gold at random numbers, but when i use it on an enemy it says it has no effect even though it dose have effect so i what i want to know is how do i change the no effect message to how much gold i stole from a scale of one to ten?
Title: Re: Pickpocketing Help please?
Post by: modern algebra on January 08, 2009, 03:15:29 PM
Oh, OK, so that happens when it does nothing else but call a common event. There is a way to do it by default but I forget how. One way might be to make a blank state and have the skill inflict that state on the enemy.
Title: Re: Pickpocketing Help please?
Post by: DrHojo on January 08, 2009, 03:32:52 PM
ah okay. one more thing, is there a way to make it have a 50% chance of succeeding instead of all the time.
Title: Re: Pickpocketing Help please?
Post by: tSwitch on January 08, 2009, 03:50:36 PM
you can have a variable set to a random number from 1-100,
and then if it's from 1-50 (50% chance)

then the steal executes

else: failed.

note: the 50% can be any even number range, from 1-2, to as large as 1-1,000,000 if you wanted.  It really doesn't matter, so long as the number you're checking against is the halfway point.

I suck at explaining with words, so incoming pseudocode


variable = (random from 1-100)
if variable >= 51
    //steal
else
   //failed


you just have to translate that into eventing.
Title: Re: Pickpocketing Help please?
Post by: DrHojo on January 08, 2009, 04:05:39 PM
Quote from: NAMKCOR on January 08, 2009, 03:50:36 PM
you can have a variable set to a random number from 1-100,
and then if it's from 1-50 (50% chance)

then the steal executes

else: failed.

note: the 50% can be any even number range, from 1-2, to as large as 1-1,000,000 if you wanted.  It really doesn't matter, so long as the number you're checking against is the halfway point.

I suck at explaining with words, so incoming pseudocode


variable = (random from 1-100)
if variable >= 51
    //steal
else
   //failed


you just have to translate that into eventing.

okay that helps alot, but still confuses me i know what you mean but i just don't know how to put this in eventing. if someone could make some kind of script of show me an example of a way it will be alot of help.

Never minds sorted it out, all i need to know now is how to make it tell you how much gold you have taken from a random number of one to ten.
Title: Re: Pickpocketing Help please?
Post by: tSwitch on January 08, 2009, 04:24:14 PM
have a random variable set from 1-10 to determine the amount of gold you get
let's say it was variable 50.

the message would say..


Stole \v[50] gold!


if I'm not mistaken, by default you can use \v[#] to print the value of any given variable.
Title: Re: Pickpocketing Help please?
Post by: DrHojo on January 08, 2009, 05:07:50 PM
Quote from: NAMKCOR on January 08, 2009, 04:24:14 PM
have a random variable set from 1-10 to determine the amount of gold you get
let's say it was variable 50.

the message would say..


Stole \v[50] gold!


if I'm not mistaken, by default you can use \v[#] to print the value of any given variable.

thank you it works. ^_^ by the way the variable i was useing for pickpocket was 50 O_O.
Title: Re: Pickpocketing Help please?
Post by: tSwitch on January 08, 2009, 05:08:42 PM
glad I could help :)
and wow that's creepy.
Title: Re: Pickpocketing Help please?
Post by: Kokowam on February 25, 2009, 12:02:59 AM
Instead of 1-100, just do 1 or 2 and one of them = succeed and the other = fail. :V

Of course, NAMKCOR's way is better if you want to eventually modify the percentage.
Title: Re: Pickpocketing Help please?
Post by: chernobyltetris on February 26, 2009, 11:24:16 PM
could you better explain how to make pickpocketing?
i want it to work this way when facing a character:
0% front[facing them]
25% sides[beside them]
50% back.[behind them]

Title: Re: Pickpocketing Help please?
Post by: Kokowam on February 27, 2009, 03:26:06 AM
Use conditional branches. If you've actually spent the time looking at it, then you'd know.
Title: Re: Pickpocketing Help please?
Post by: chernobyltetris on February 27, 2009, 04:35:01 AM
just started vx....
sorry for my ignorance.
Title: Re: Pickpocketing Help please?
Post by: Kokowam on February 27, 2009, 05:27:55 PM
Just learn from it, then, and you'll be fine.