i am making a game for my grandchild and want to give points (0 of 100) , for finding little things in three rooms. i don't understand scripting. is there a simple way to do this? any help would be appreciated. thanks. my email is tpyrcm@yahoo.com
Either the hotspot or object interaction editor, through the Add Score (or Add score for the first time), (I haven't used the interaction editor in a long time, so I can't really advice how to use it) or, though scripting, by adding the GiveScore command to the point where the score should be added.
thanks for response. i need to know how to get the points to show up when the player picks up an item. i did make a label but how do i write the script and exactly where. if you could show me an example it would help. yes, i read the manual but it is not clear to me. i thank you again and hope you can understand what i am trying to do.
Ah, yes... If you have a GUI label for the score to be shown on, just set the label text to "@SCORETEXT@" (without quotemarks), and it will display "Score: 0 of 100" or something, or you can use "@SCORE@" to show the current score on that point of the label, and, if I remember correct, "@MAXSCORE@" to show the maximum score. The manual has these somewhere... Anyway, you could for example set the text to "You have now @SCORE@ of @MAXSCORE@ points." to customize the message. (it could be "@TOTALSCORE@" aswell... not sure.)
ok. i got the label to read 0 out of 100. now, where do i put the add score to the action? in other words i want the points to come up in the label( when key is picked up i want to give 10 points) i want the label to change to 10 of 100. i know it has to go somewhere but i can't tell where i should put it. which script and where ? it's hard for me to explain and i am trying my best to understand this scripting. thanks for all your help.
The easiest way to do this is right from the interaction window. Double-click on the interaction you want to modify. In the "Do the Following Command" list, select "Game - Add Score". It's right there when you scroll about halfway down the list. Then all you need to do is type in the amount you want to add. The score text is modified automatically when you play the game.
In the interaction editor there is an action called Game-Add Score. So you go into the "objects" section of the room editor, select the key, klick "interaction", select "interact object", double click and then select above said action. Edit the properties to your liking and you're done.
The effect of that is that whenever the "interaction" cursor is used on the key, the score is increased.
You should also add the actions "Player- Give..." and "Object- Remove..." To make the object wander into the players inventory.
Edit: I'm typing too slow...
THANK YOU VERY VERY VERY MUCH. I FINALLY GOT IT. EVERYONE WAS A BIG HELP. BETWEEN ALL OF YOU NICE FOLKS I BEGAN TO UNDERSTAND. OF COURSE I MESSED UP MY GAME AND HAD TO RE-UNZIP IT AND START ALL OVER BUT THAT IS NO BIG THING BECAUSE I AM REALLY LEARNING AND ENJOYING THIS. ;) I KNOW I CAN COUNT ON ALL OF THE GOOD PEOPLE HERE WHENEVER I GET STUCK. SO THANKS AGAIN FROM THE BOTTOM OF MY HEART AND GOD BLESS.
Wheee! Easy on the caps! ;D