Post by Phoenix on Aug 13, 2007 20:22:08 GMT -5
Alright then with my Event system safely submitted to Adam for the contest I shall now give you the Tut. on how to make an Event System that allows the player to choose their char. name, the sex of the char. AND the class of the char.
I got tired of waiting around to see if anyone would post me something on how to achieve all that so one late night i buckled down and figured it out on my own.
First off lets make the event.
So open up a new event window and choice an image you want to use to represent this event. I choose an NPC that won't appear until game end and named it Time.
You're gonna want to make this event a Player touch one.
Now start off with it greeting the player and asking for their name. My was like this;
"<Time> I am Time. As a new being in my world
I need some information from you."
"<Time> First off, What is your name?"
See simple. next you're gonna want to insert a new event command.
the "Name Input Processing" is the one you want for this. This lets the Player put in their char. name. Now to have the game say the name later on you're gonna want to put in "\n[1]" no quotes. So it looks something like this;
"<Time>Alright \N[1] choose your form
for my world."
The next part is for them to choose the sex of their char.
So we're gonna put a label in call it something like "Label: Male-Female" All that does is label that part of the code, we'll need that for later on. Now you wondering what command we put in that lets use chose that right? been looking all through them all and can't find it huh. Well it's simple you use a "Show Choices" command. But instead of 'Yes' and 'No' do 'Male' and 'Female' like this;
"Show Choice: Male, Female"
Now that we have that ready we go on. Lets add another label. Now with my game I have a total of 5 classes, but you're like "But hey Phoenix there's only room for 4 choices how do i do more then that?" easy the first 3 choices are 3 of your classes and the 4th one is a "Next" to take you to yet another Show Choice string. So back to labeling the first set of choices. Mine is "Label: MaleChoice" Now we got that label right after the Male Female choice string we add the new Show Choice string.
So far the code should look like this;
Now with the new Show Choice string ready lets add in 3 of our class choices such as
Warrior
Hunter
Mage
Next
Now what do we do about that When Cancel bit? Well we have that go to 'Branch' because what if the player choose male by mistake.
Ok so in the Branch part of the first bit of our current Show Choice we're gonna have it send it right back to the Sex chosen part. so lets add in a Jump command, and have it Jump to Label: Male-Female. See where the use of labels come in.
Now i'll give you an example of how you should have each choice of the class set up.
:When [Warrior]
@>Change Actor class: [], [Warrior] << That's when you change their class
@>Change Actor graphic: [], "a graphic for you warrior"
Now we put in another Show Choice string but this one to confirm. And that's gonna be a simple Yes or No with jumps as the resulting action
like this;
I've also got it so that if Yes is chosen it adds to their inventory the armor and weapons that go with that class. and if No that it changes the class and graphic back to before the choice. The Jump to MaleDone takes it to the end of the whole system.
You can repeat this for as many Classes as you want, and just to the same for the Female side of it.
Good luck with it and if you need any help let me know.[a href="http://[del:phoenix]"]http://[del:phoenix][/a]
I got tired of waiting around to see if anyone would post me something on how to achieve all that so one late night i buckled down and figured it out on my own.
First off lets make the event.
So open up a new event window and choice an image you want to use to represent this event. I choose an NPC that won't appear until game end and named it Time.
You're gonna want to make this event a Player touch one.
Now start off with it greeting the player and asking for their name. My was like this;
"<Time> I am Time. As a new being in my world
I need some information from you."
"<Time> First off, What is your name?"
See simple. next you're gonna want to insert a new event command.
the "Name Input Processing" is the one you want for this. This lets the Player put in their char. name. Now to have the game say the name later on you're gonna want to put in "\n[1]" no quotes. So it looks something like this;
"<Time>Alright \N[1] choose your form
for my world."
The next part is for them to choose the sex of their char.
So we're gonna put a label in call it something like "Label: Male-Female" All that does is label that part of the code, we'll need that for later on. Now you wondering what command we put in that lets use chose that right? been looking all through them all and can't find it huh. Well it's simple you use a "Show Choices" command. But instead of 'Yes' and 'No' do 'Male' and 'Female' like this;
"Show Choice: Male, Female"
Now that we have that ready we go on. Lets add another label. Now with my game I have a total of 5 classes, but you're like "But hey Phoenix there's only room for 4 choices how do i do more then that?" easy the first 3 choices are 3 of your classes and the 4th one is a "Next" to take you to yet another Show Choice string. So back to labeling the first set of choices. Mine is "Label: MaleChoice" Now we got that label right after the Male Female choice string we add the new Show Choice string.
So far the code should look like this;
Now with the new Show Choice string ready lets add in 3 of our class choices such as
Warrior
Hunter
Mage
Next
Now what do we do about that When Cancel bit? Well we have that go to 'Branch' because what if the player choose male by mistake.
Ok so in the Branch part of the first bit of our current Show Choice we're gonna have it send it right back to the Sex chosen part. so lets add in a Jump command, and have it Jump to Label: Male-Female. See where the use of labels come in.
Now i'll give you an example of how you should have each choice of the class set up.
:When [Warrior]
@>Change Actor class: [], [Warrior] << That's when you change their class
@>Change Actor graphic: [], "a graphic for you warrior"
Now we put in another Show Choice string but this one to confirm. And that's gonna be a simple Yes or No with jumps as the resulting action
like this;
I've also got it so that if Yes is chosen it adds to their inventory the armor and weapons that go with that class. and if No that it changes the class and graphic back to before the choice. The Jump to MaleDone takes it to the end of the whole system.
You can repeat this for as many Classes as you want, and just to the same for the Female side of it.
Good luck with it and if you need any help let me know.[a href="http://[del:phoenix]"]http://[del:phoenix][/a]