how to script a notebook?

Started by j-Hed, Tue 12/08/2003 20:56:49

Previous topic - Next topic

j-Hed

I am trying to make a notebook that will appear when you press a GUI button. On it you should be able to type questions and notes that you can use on characters to ask questions, and also use with objects. Perhaps it would be best to use an own room for it with a notebook picture, TextBox GUI's over it and hotspots where the textboxes are.

I thought if I used a textbox GUI well several GUI's, one for each line of the notebook, then I can type in a question for e.g. "is the fish good" and press enter. When you press enter I want the text to be stored on the notebook (maybe store it with GetTextboxText and then re-draw it on the same coordinates somehow, because when you press enter the text will disappear)
so that when you take the notebook down or saves the game and restore, it will still be on the notebook.
Then if I have drawn a  different hotspot on the places where the Text Box GUI's are a left mouse click will change the mouse cursor (SetCursorMode) to a certain text bubble icon that you can use with the person you are talking to or even with objects. And when you click on the person/object the stored text ("is the fish good") will be checked of "fish"
and "good" for e.g. (with "ParserText").

Maybe use InputBox when icon is given to asked person and the text will be checked with text parser, making your character ask the question. Of course not exacly as was typed in, for my game I use the  sampled (AUDIO file) question something like "can you eat this fish?" for e.g.

Am I on the right track or is this totally wrong, maybe you know an easier way?

Anyway Please HELP, and THANK YOU!

MachineElf

This is how I would do it:
Make a large GUI with a lot of empty labels (or rather initiated to empty in game_start) in rows.
Make a button for each label.
When pressing a button a parser comes up where you can write the note you like. This button could also be used for deleting the entry and 'using' the entry, depending on context.
The text from the parser of course is transfered to the correct label.
If you want several pages you can store the texts in global strings and change the labels accordingly when changing pages.
Hope it helps!
There are 10 kinds of people in the world: Those who understand binary and those who don't.

Joseph DiPerla

Hmmm. Reading this makes me wonder... Maybe we can use A text box to do this. I will try and script something later and see if I can post it. No Guarentee's though.

If I do make it, maybe I could include it in Demo Quest II.

Joey
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

j-Hed

Gee thanks guys!

I very easy get the scripting in a mess inside my head so this is great!
And it would be fantastic Joseph if you posted your scripting.
Good that you liked the idea.

THANKS again!

SMF spam blocked by CleanTalk