Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / RPG Type Question

Author
Message
Krimzon DestinE
19
Years of Service
User Offline
Joined: 18th Sep 2005
Location:
Posted: 10th Mar 2006 17:17
What does it mean when there is a boolean in a type array? In an rpg, could there be status ailments in type array and would they be integers, booleans, or whatever else? The status ailment will make the chracter act a certain way. I'm just trying to understand.
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 10th Mar 2006 18:26
If there's a boolean in a type array then it can be set to true or false, and you can make whatever you want happen.

FunkyStickmen: Battle of the Races (1%)
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 10th Mar 2006 21:44
Chances are you could put an Integer type into an array (or 'user defined type' if you have DBPro).

Then, those numbers should represent specific ailments.

For example:
1 = Blindness
2 = Sleep
3 = Poison
4 = Stone

Those are integers, and you COULD make it so that...
53 = Blindness
3772 = Sleep
2 = Poison
-99 = Stone

You choose the numbers yourself, but it's what those numbers mean that's important.



Or, to make it tidier (and easier to keep up to date with) use a Select/Case statement. But 'IF's are ok if that's all you're used to.

Login to post a reply

Server time is: 2024-09-24 17:31:06
Your offset time is: 2024-09-24 17:31:06