Make sure when he gets a "card" you put a switch on. just name one.
now head to the shop NPC
>Conditional branch
>@switch GOLDCARD 0001 on
>(story, talk, shop processing
>@:else
>@conditional branch
>>>>>@Switch SILVERCARD 0001 ON
>>>>>(talk, shop process)
>>>>>Else
>>>>>@conditional branch
etc
Remember 2 important things!
1). When you get a card, put the made switches all on off in the event and make sure only the right switch is getting turned on.
2). when making the example as illustrated above make sure you "end switch" in this case your highest discount card if the first one, then the bit worse one, then a bit worse. because it will check the first option, if I do none as the first option for conditional branch it will always go there, since it already meets the requirements...
so make sure it is the highest requirement and as second one you put the second best and so on.
If this is still not clear sent me a message and ill make an example game for you so you can see what I did and how it works.
I hope this helped
Kind Regards,
//Robin
That looks pretty similar to what I had but using multiple switches instead of one variable with multiple values. There are three main reasons I chose to go with a variable rather than switches:
1) It only takes up one variable slot for as many cards as I want, as compared to a new switch slot for every card.
2) It's easier to check for ranges of cards with variables, such as greater than or equal to 1 checks for any cards. Some people would respond differently depending on your rank and thus ranges work well for them, rather than checking every switch.
3) When the player get's promoted/demoted, that isn't necessarily a planned event and it could happen at any time the player chooses, depending on what they do and when. Working purely with switches when that trigger was hit, I would have to make the game check every switch and then turn that switch off and figure out which switch is directly above/below that switch and turn it on. With a variable, all I have to do is add or remove 1 unit from the simple single value.
What benefits do you see in using switches instead?
I'm sure that switches are very useful and I'm not trying to say that they're not; I do think that a variable might be the better option in this particular situation though.
Thank you for your idea by the way. Sadly, other things have gotten in the way of my work on this but I still think about this sort of stuff every day and do hope to get back to it soon!
I have ace for about a week now, I watched a tutorial and took everything from there. I began to think of idea's and how to implant them.
Thus I created in my game (what will be epic once finished) you can buy houses.
I tried to make this work and since i do not know the diffrence in switches and variables I still found a way to succeed
(the way I told you)
on number 3). everything you make, a small conversation is basically an event, I ment that and not a cut-scene. so the player needs an event in order for change xD
my benefit from switch is that I know how it works. lol
I need to learn way more, but the best thing is practise. I will look up the diffrence and how I can use it to my advantage.
And finish you game soon 😀 I would love to play it.
and glad I could come up with a ... working idea ;p
Kind regards,
//Robin
Firstly, welcome to the system ^_^
To put it simply, switches are on or off, while variables are numbers that can go very high or very low (into the negatives if needed).
For example, with my 3 cards, the switches would be:
BronzeCard,
SilverCard and
GoldCard,
and any event that interacted with those switches would have to check every switch position.
With variables, you use a single variable, like:
Cards
and assign numbers to it that you can then whatever you want with.
Say there's someone in middle management who treats those with no card or bronze cards like dirt and treats those with silver or gold cards like god(desse)s. To manage that attitude in an event with switches, you would have to check each switch position and put in an appropriate event for each. With variables, you could cut that down to checking two things: <=1 or >=2. That would cause one reaction for less than or equal to 1 (no card on 0 or bronze card on 1) and another result for equal to or greater than 2 (with silver card on 2 and gold card on 3). That's what I meant when I mentioned ranges in my last post.
Another example of a use of variables is a points system. Say you have a couple of characters and you want the player to choose things that will either bring those characters together or drive them apart. This could be done with points that would be stored in the variable fields associated with them. Maybe they'll fall madly in love or maybe they'll start world war five just to wipe each other off the face of the planet. Either way, when they do anything that has in impact on the other character, points can be added or removed. He gave her a bunch of flowers? +5 points! It had an angry bee in it and she's allergic? -10 points. Oops, he's at -5 now, she won't be very nice to him, better fix that! Etc.
Another use of variables would be time passing. Maybe your house has a garden and you've planted some seeds. You can manage the growing plants with variables, either as they're taken care of or just as time passes, slowly changing the appearance of the plant as it grows. Access another variable to check your green thumb panache and add a little skill when successfully harvesting your veggies for dinner that night.
Switches are great with simple yes/no or on/off situations. Have you already searched this treasure chest or solved this quest? Those might be self switches. Has the whole world tipped on it's head? That might be a universal switch. When it comes to things with wider ranges or that you want to do mathematical things with (you can do all sorts of maths with your variables, not just adding/subtracting) though, a variable may be a more flexible option. Is it lunch time or dinner time? Better check that variable. Then there's scripting, which can be immensely useful! But I stay away from it because it just goes over my head XD
Sorry for going on about it, you probably weren't even interested and I'm far from succinct... Hope I was able to help you understand a little about the system though. Variables and switches are both very important but it's also important to know how to effectively use your tools and to know which one to use for which part of your projects.
No not at all ^^
I tried to help you and instead I am the one getting helped haha!
Thank you for the information