Charas-Project

Game Creation => Requests => Tutorials => Topic started by: TadBolmont on October 08, 2008, 09:44:23 AM

Title: Little Question...
Post by: TadBolmont on October 08, 2008, 09:44:23 AM
Okay. Before I start, I just want to say that I didn't know if this was the place to post this question, but I figured it was the best choice.


Alright, on with the question... I'm putting an Allignment system (Good, Evil, Neutral) using a tut I found on Ultima Island. Along with those three allignmants, however, I've added two more (Devilish and Holy) and while putting in the event commands, I began to wonder if the way I had it would work. Um... there's a pic of the command list below.

P.S. In case the info is needed, it's a common event set to parallel process...

Edit: Also, can someone tell me how to properly use the ship tileset in the rtp? Its got me all confuzzled.
Title: Re: Little Question...
Post by: Prpl_Mage on October 08, 2008, 02:23:32 PM
I suppose that the varaible is your currenct allignment?

-5 develish -1 evil 0 neutral 1+ good 5+ holy

I think that would work very well. Another option would be to add else commands but I'm pretty sutre that'll work as well.

And I think there's a pic of the ship chip somewhere, check the mapping thread.
Title: Re: Little Question...
Post by: TadBolmont on October 08, 2008, 03:57:51 PM
Thanks. I thought I had got it right, just wasn't sure...

Oh, and about the ship thing, I've looked before, but I'll try again...
Title: Re: Little Question...
Post by: Felix-0 on October 09, 2008, 06:07:54 PM
LOL my sequel to my game has a system just like yours..just It changs menu color like
Star wars KOTOR. Where as the menu is faded red is -1/-4. Blood red is -5 .grey is neutal. and bright blueis 1/4 and Pure white is 5
Title: Re: Little Question...
Post by: Meiscool-2 on October 09, 2008, 07:24:00 PM
Well, from the looks of things, you might end up with some switch issues. For example, at the very end you have it turning on Good if your allignment is less than 5, but what if the allignment is -2? Then you would have both the Good and the Evil switches on. Then you have it turning off Holy if the allignment is more than -5, but remember, 9 is more than -5, which SHOULD be considered holy.

What I'm saying is... the way you have it right now, you might end up with more than one switch on, none on at all, or even the wrong switches on/off. You could use fork conditions to fix this, but I would go with the below:

Instead of having five switches, you should just have one varible called "Evilness" or something. If you're allignment is 0, then set Evilness to 0. If it is less than 4 but greater than 1, set it to 1 for "Good". So on and so forth for the rest of the stuff.
Title: Re: Little Question...
Post by: Felix-0 on October 09, 2008, 07:57:55 PM
I just realised that.I don't see how I missed that  :eyes:..On the other hand I made 5 diffrent switches

056: Neutral
057: Evil
058: Demon
059: Good
060: God

Each has some influence on the scenesa in game...but its mostly for choosing who you get in your party

My idea went

Conditional branch: If variable (allegiance) is
Greater than 0
Switch Good (ON) Switch Neutral, God, Demon, Evil (Off)
Conditional branch: If variable (allegiance) is
Equal to 5 God (ON) and so forth
Title: Re: Little Question...
Post by: TadBolmont on October 10, 2008, 01:53:37 PM
Wow. You're right, Meiscool. I didn't notice that at all. However, I have changed it. Now, when the value goes below -5, the devilish switch is still turned on, but the evil switch stays on, and the same thing on the other end of the scale, with the good and holy switches.