The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: A really NoOby Guy on February 07, 2006, 01:49:00 AM

Title: Persuade!
Post by: A really NoOby Guy on February 07, 2006, 01:49:00 AM
Hi, I am working on two games, Kerenia's Heroes:Curse of the Dreadblade and Hero Genocide. Anyway, I am a BIG noob, I need to know how I could make it so about 75% of the time the person is persuaded and 25% of the time he will stay @ the certain spot....
Title: Persuade!
Post by: GilgameshRO on February 07, 2006, 03:25:30 AM
I'm not sure I understand the question... Could you elaborate?
Title: Persuade!
Post by: ArkBennett on February 07, 2006, 04:00:19 AM
Make a variable, under it's availiable properties select "Random number between" and set the first number 1 and the second 4.

On the event where your supposed to persuede the person make a conditional branch and select variable.
For the number put 1. Check else case.

So you know what your doing.
When you set the variable 1-4 the value of the variable is randomly set on a number between 1-4 or 25%-100%. On the conditional branch, if the variable landed on 1 (25%) then he won't tell you. But with the "Else Case" (75%) he will tell you.

So put the 25% chance in the conditional branch and put the 75% on "Else Case".
Title: Persuade!
Post by: Jesse 015 on February 07, 2006, 08:18:50 AM
Quote from: GilgameshROI'm not sure I understand the question... Could you elaborate?

i would ask the same, like, WTF r u talking a bout?
Title: Persuade!
Post by: ahref on February 07, 2006, 09:30:53 PM
are you saying for example

pig town(future website of mine material)

little piggy doesnt wnat to go to school so when you try to move him he may not follow your commands

or

pig has to kick the tree to get apples(battle)

pig doesnt feel like doing it


that sort of thing?
Title: Persuade!
Post by: dwarra on February 07, 2006, 09:45:29 PM
Guys, ArkBennet already answered the question, correctly so just wait for his reply, PLEASE
Title: Persuade!
Post by: A really NoOby Guy on February 08, 2006, 01:17:06 AM
I am a serious noob, How do I use that Variable thing Under Preconditions?
Title: Persuade!
Post by: ArkBennett on February 08, 2006, 01:37:54 AM
Preconditions, aren't neccesary.
This is all done with the creatable event commands.

Here's what it should look like...

<>Variable: [0001: Variabe Name] = Random (1..4)
<>Conditional Branch: Variable [0001: Variable Name] == 1
   <>(Insert the 25% here)
:    Else Handler
   <>(Insert the 75% here)
:    End


See, it isn't that hard.
Title: Persuade!
Post by: Zeriab on February 08, 2006, 11:06:06 AM
If you have troubles with variables I suggest you read this:
http://www.crankeye.com/forums/viewtopic.php?t=2627