help with Skill Trees and Working With Numbers....
endymion
10 Feb 2004, 11:57Couple of quick questions for any *real* coders out there, since I am absolutely clueless about this stuff.
1: Skill trees
Trying to set up a skills list using variables...that way when someone walks out of a house and looks about, if their Nature Lore is high enough they can pick up differnet things about the area. Heres the question tho...under Insert Variable on 'add conditional', how do you set up your own strings?
2: Working with numbers
This is all in QDK mind you...but in reference to the above, how would i set it up so that if their skill is greater than or equal to, say, 5, then they would get such and such a message? I know to use an if-then statement but after that I'm lost....I dont know how to do ranges.
Thanks in advance for the help. Pretty soon I'll actually know what I'm doing and you all won't have to put up with my silly questions!
1: Skill trees
Trying to set up a skills list using variables...that way when someone walks out of a house and looks about, if their Nature Lore is high enough they can pick up differnet things about the area. Heres the question tho...under Insert Variable on 'add conditional', how do you set up your own strings?
2: Working with numbers
This is all in QDK mind you...but in reference to the above, how would i set it up so that if their skill is greater than or equal to, say, 5, then they would get such and such a message? I know to use an if-then statement but after that I'm lost....I dont know how to do ranges.
Thanks in advance for the help. Pretty soon I'll actually know what I'm doing and you all won't have to put up with my silly questions!
paul_one
11 Feb 2004, 09:06I don't understand your first question...
You define/set/initiate a variable earlier on, then use the conditional to check it.... To set it in QDK look in the variable thingy and there's "set string variable" or something...
Your second part, check if a variable is 'more than' 5...
In QDK, variable up the top, "more than" in the middle (I believe) and 5 in the bottom box... Oh, and it's check a variable against a certain value or something....
Raw code is as follows:
1)
2)
You define/set/initiate a variable earlier on, then use the conditional to check it.... To set it in QDK look in the variable thingy and there's "set string variable" or something...
Your second part, check if a variable is 'more than' 5...
In QDK, variable up the top, "more than" in the middle (I believe) and 5 in the bottom box... Oh, and it's check a variable against a certain value or something....
Raw code is as follows:
1)
set string <variable; value>2)
if (%variablename% > 5 ) then {
msg <Decription message>
} else {
msg <Lower level description message or other conditionals>
}endymion
11 Feb 2004, 10:29ah very cool...that helps a lot...ive been having a problem with the 'set string' command giving me a weird error message tho, so i'll try it again and see it if works. thanks for the help.