Author Topic: Book-like object  (Read 2572 times)

I think that their should be a book. When you mount it and click, a Message Box of some sort should come up. It should only appear to the person whom activated it, so not in the chat box or what not. You should be able to change the contents and shape easily. Just an idea.

Like "The guide" from RTB? It activated the "display rules" command. Something like that?

Get me a model an I'll make this.

It'll be done tommorw (The model)


This would be really good.

What I would like to see is a customisable GUI that pops up when someone enters the server and tells them about it. You could have rules, stories and notes written there for newcomers.

That may have to wait until RTB 2.0 comes out though.

Here's what i plan on doing:
  • Make a gui with which the host can type in what they want to be displayed in the book.
  • When someone picks up the Book and click's a gui will pop up displaying what the host typed in the book.


Quote
Epic novel anyone?


lol...time to start righting.

Quote
Here's what i plan on doing:

Make a gui with which the host can type in what they want to be displayed in the book.
When someone picks up the Book and click's a gui will pop up displaying what the host typed in the book.

Can you make it so we can have multiple books in the server? I mean like they could discover new things as they discover/buy the books.

Another (perhaps better) idea would be to save the contents of the book in some kind of text file just like macros folder (made by ephi). That way when we want to make a new book we can just make a copy of an existing text file, rewrite the text and give it a new name. Then load it useing a GUI like the macro saver. Then have a "spawn book" button that spawns existing book.

I dunno if i could do multiple books that's getting a bit advanced for me (Well i could learn if someone told me a way how to) i think i was just gonna have the onFire function make you pop up a gui that called a command to set the text to a global variable.

Expand on the file writing bit, i can do that.

I just renembered that the gui the book user uses has to be one they already have so there will have to be a limit on words, not sure what the limit for message box ok is.
« Last Edit: August 25, 2007, 11:20:13 AM by MrPickel »

Ok...just think of Ephi's macro saver.

Basically have it so a person (perhaps have to be admin) pushes a button and the Book GUI comes up. On the GUI is a list of existing books to be selected from. If you select a book from the list and hit "Spawn" the book is spawned infront of you.

Also have a button called "Create book" which allows the user to type in a new book. "Save" button too for saving a new book.

"Edit" button for editing existing books.

I think i've worked out how to have multiple books but it'll take me long to do it.

I could make it so you like name the book and when you drop the book it writes a file with all the contents of that book and the name of that book then when you fire it opens the corespending file and displays that in the gui.

Only thing is it wouldn't respawn unless i find out how or make the person ope n the gui when they pick it up and then drop it again.

Perhaps make the player spawn with it (assuming their using a default minigame) ?

I could do that but then the book would only be able to read the current thingy.

you could use / commands
I.E.
/loadbook namehere
/savebook namehere

And then when you go to use the book, it will come up with the message that was loaded(just make a variable for the client to hold it untill they use the book)

I could probably make the loadbook/savebook thing if you need to see what I mean.
And this way, you wont have to get the mod to use books.

Also to overcome the limit of words, find out a good number per page, and then every (lets say, 300) words-- erm heres what I mean
Code: [Select]
%number=1;
%end=300;
%chars=strlen(%client.booktext);
while(%chars>=%end){
 %texttoshow=getSubStr(%client.booktext,%number,%end);
 //showthetext
 %number+=300;
 %end+=300;
}

that will continue to cycle through every 300 letters untill it has displayed them all.