I could have sworn the method for making conditional dialouge, as in...
I have the character select an element.
Then, I have a NPC comment on that said selection displaying something like.
"Ho, ho! I see you like [ElementSelection]"
On top of this, I need that selection to be persistent, for later. This is all part of a sort of character creation process.
Player selects element, Element chosen is stored.
Player selects a "Body", Body chosen is swapped with current actor sprite, and then given said element as a trait for purposes of attack type, resistance, and weakness.
Then, that is all stored in a assigned "Player Character Actor" slot.
With my game, I currently have it planned as having up to a party of 20, and going on collectible party members, ranging up to 140 actors/battlers, not to include collectible/recruit able shop-keeps and support characters.
So, to re-cap.
My question is, how would I store my Element Selection, and then use that in dialogue, and later in giving the chosen actor the traits.
That first bit being the current portion I am having trouble with.
When making the selection, you're using a choice command in the event.
In each choice, you use a different control variable command to store the choice number in a variable.
Then at any later point of the game, you can use a conditional branch on the content of that variable to check which option was choosen and display a different dialogue dependin gon that choice.
Dekita
Sound like a good start, I am gonna give it a tinker and see if it works. However, that being said. What if I want an event that stores an actors "Element Type" so that later in diaolouge I can call on it through use of a variable.
For example, I want my choices set up as said, but instead of 4 different variables, it's one per actor, and instead it SETS that variable number to that Element, then calls the variable and displays the element?
Or is that how you'r script is working?
The screenshot Dekita provided DOES use a single variable. It gives it one of four values, depending on the player's choice.
Perhaps I misunderstood what you posted, Dekita. I didn't see anything in your post that referenced exactly HOW to make the variable a word instead of a number, so when you used numbers in your screen shot it just looked like more work than the tutorial showed. I'll admit I'm not versed in scripting, even the basic stuff so you probably meant the same thing the tutorial covered. I apologize for any confusion on my part; but I figured the tutorial explained what seemed to be missing from yours.
In any case, I was really just excited to find that tutorial! I had been upset for some time that I couldn't store words in variables and having it spelled out like the tutorial does was a gem for me. I've been using the basics of the program for quite some time, but as far as scripting goes I'm still very much a noob. For those of us that don't have any basic programming knowledge or scripting experience, what you posted originally could look very different than you meant. You know, you gotta speak slowly so we understand. Haha.
Sorry again, though, for misunderstanding what you posted. I see now after you point it out it is exactly the same as the tutorial, only you don't show when you set the original variables as words. That was what got me confused. With your screenshot and the tutorial, Kraze should have no problems with this solution! 😉
So the elements are hard-coded in the software is what I'm getting from this. Is there a list someplace that shows what elements are used and what their corresponding numbers are?
I dunno if Kraze needs it, but I would love to have that reference. I'm sure it's somewhere in the help file, but I find it difficult to navigate with some queries...
And no worries. I'm just slow is all. 😉
No, the elements are in your System tab. You can add, remove and change them as you wish.
Oh! I'm a dunce. That makes far more sense. Sorry about that!
If for some reason you wanted to manually print out a list of elements on to your console, you could do this.... (script call)
$game_system.elements.each {|i| p i }but i dont know why anyone would need to do that because as Shaz stated, its in the database system tab 🙂
Thanks all, WOW.
So much information to work with. I will try everything out, see what fits for my needs. Thank you all for the quick reply!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.