RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Character creation event (RMXP)

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 86
   I'm currently working on a character creation event in which the players class is chosen by answering a series of questions each answer awards the player points in favor of a particular class depending on their answer.
  My problem in the that a conditional branch only lets you compare one variable to one other variable when i need to compare one against four other variables. does anyone have any suggestions short of creating a new variable for each class that will add up the points of all the other classes to compare against in a conditional branch?
any help will be greatly appreciated.
« Last Edit: September 01, 2007, 04:14:19 AM by Voyevoda »
Current Project: UnderGround
Status: In development
Story: 50%
Maps: 01%
Scripts: 05%
Characters: 40%

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Well, you could make each option add a certain amount to a single variable. In other words, set one variable up.

Variable = 0

Then for the questions, as a result of the answer, add to that variable a special amount representative of what class that option best represents.

To show this, let's take a simple case.

Say, there are three classes (thief, fighter, mage), and three questions (answers yes or no).

Let's say that if the final variable result is low, say below 5, then the player is a thief, if it is between 5 and 10, he is a fighter, and if it is above 10 then mage

Then for the questions:

Are you sneaky?

Yes: Add 1 to the variable

No: Add 4 to the variable

Are you virtuous?

Yes: Add 1 to the variable

No: Add 4 to the variable

Are you smart?

Yes: Add 4 to the variable

No: Add 1 to the variable

Thus, if you answer [yes, yes, no] the variabale is 3, and so you are a thief. If you answer [no, no, yes] you are a mage, and if you answer any other combo you are a fighter.

Obviously, you'll need to select what is added to the variables dependent on answer more discriminately

**
Rep:
Level 86
Thanks that solved the problem.
Current Project: UnderGround
Status: In development
Story: 50%
Maps: 01%
Scripts: 05%
Characters: 40%

**
Rep:
Level 86
see i whould help u but i not good at theese type of events srry
Bleach is bangin

********
Shadow Knight
Rep:
Level 91
Ruin that brick wall!
Project of the Month winner for October 2008
Add [Resolved] on the topic title.
Be kind, everyone you meet is fighting a hard battle.