Health option
roba4ever
12 Jan 2007, 22:50hi people.
i just need to know how you create a health thing like some of the games on here, where you have 100 health to start and goes down....how do you create one of those from scratch?
i just need to know how you create a health thing like some of the games on here, where you have 100 health to start and goes down....how do you create one of those from scratch?
007bond
22 Jan 2007, 17:32It's been way to long since i made games, but one thing I can tell you is that you'll need to use status variables, found in the "game" menu. Can't tell you much more then that.
Elexxorine
22 Jan 2007, 20:21Ok, following on from 007... Make sure it's a numeric (as in number), set starting value as 100 or whatever. Now to change it.... you um..... haven't used QDK in, years is it now? Anyway, Go to where you want it to happen, bring up the script bit, add command, variables, set variable, enter the name you gave your health value, then in the value box put something like '%health% - 3' (replaciing health with the real name and - and 3 with the expression you want. Hope that helps..... Got any more troubles just ask.
witch wyzwurd
26 Jan 2007, 20:29Hey 4ever...
Since your a beginner, Elex's post might be difficult to understand.
1. Click Game
2. Click Status Variables
3. Name your Status Variable
4. Set Numeric radial dot
5. Type in box: ! Health Point*s*... The ! represents current quantity and *s* tells Quest to adjust the word depending if you have 1 Point or 2 or more Point(s).
Now let's say that you create a room that has a brick above a door, and when you open the door, the brick konks you on the noggin. Let's say the hit on the head reduces your health by 100 Points. Do this...
1. Click Command
2. Click Variable
3. Click Set Numeric Variable... in top box fill in name of your Status Variable and in lower box type in starting Health Point quantity.
4. In your code, after brick hits you on the head, click Command.
5. Click Variable
6. Click Decrement Numeric Variable
7. In top box, type in name of Status Variable
8. In bottom box, type in quantity Health Points to be reduced by (100).
Since your a beginner, Elex's post might be difficult to understand.
1. Click Game
2. Click Status Variables
3. Name your Status Variable
4. Set Numeric radial dot
5. Type in box: ! Health Point*s*... The ! represents current quantity and *s* tells Quest to adjust the word depending if you have 1 Point or 2 or more Point(s).
Now let's say that you create a room that has a brick above a door, and when you open the door, the brick konks you on the noggin. Let's say the hit on the head reduces your health by 100 Points. Do this...
1. Click Command
2. Click Variable
3. Click Set Numeric Variable... in top box fill in name of your Status Variable and in lower box type in starting Health Point quantity.
4. In your code, after brick hits you on the head, click Command.
5. Click Variable
6. Click Decrement Numeric Variable
7. In top box, type in name of Status Variable
8. In bottom box, type in quantity Health Points to be reduced by (100).