Lithumist Posted July 19, 2009 Author Share Posted July 19, 2009 Hi, i was wondering how to make a pop up box that could come up, just a normal windows one.Its kinda like the player prompts, but with just text.also, is it possible to make it accessed by scripting:MsgBoxShow(index,"Hello!")I dont know if there already is one built into the engine, if there is, im sorry :embarrassed: Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 19, 2009 Share Posted July 19, 2009 This might require sourcing.Depending on which version of Eclipse you haveā¦ Link to comment Share on other sites More sharing options...
Lithumist Posted July 19, 2009 Author Share Posted July 19, 2009 i have 2.7 Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 19, 2009 Share Posted July 19, 2009 It will require sourcing, and if you want a popup box that looks exactly like a normal windows pop-up, You will have to design it as a custom menu. Link to comment Share on other sites More sharing options...
Lithumist Posted July 19, 2009 Author Share Posted July 19, 2009 it can be anything, as long as it displays text and has a scripting command :azn: Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 19, 2009 Share Posted July 19, 2009 What do you mean? Link to comment Share on other sites More sharing options...
emblem Posted July 19, 2009 Share Posted July 19, 2009 Umm. I'm pretty sure there's already a function in Sadscript for this.QueryBox? Link to comment Share on other sites More sharing options...
Lithumist Posted July 19, 2009 Author Share Posted July 19, 2009 This is what i mean:i would like to know how to make a sadscript command that looked abit like this:MsgBoxShow(index,"Hello!")the command would show a pop up box, like the box that comes up when you step on a house tile, but it would only have text.I could use it for npc speech.I hope you understand now :cheesy:EDIT:@Umbra!:> Umm. I'm pretty sure there's already a function in Sadscript for this.> > QueryBox?I think that query box is like player prompt, doesn't query, mean question? Link to comment Share on other sites More sharing options...
Kimimaru Posted July 19, 2009 Share Posted July 19, 2009 This is the MsgBox command.The syntax is:MsgBox "(message here)", 0, "(title of the message box)"Note that there are no parenthesis in this syntax, unlike most other functions.The QueryBox command is very similar to this, except it asks the player to type in something, so you wouldn't use that. Link to comment Share on other sites More sharing options...
Lithumist Posted July 19, 2009 Author Share Posted July 19, 2009 Thankyou!I never knew this existed! :cheesy: Link to comment Share on other sites More sharing options...
Kimimaru Posted July 19, 2009 Share Posted July 19, 2009 No problem. It's not used very often, but I like it, so I use it a lot. Good luck! Link to comment Share on other sites More sharing options...
Patrick Posted July 21, 2009 Share Posted July 21, 2009 Why not call a custom menu?You can make it like this```case XCall CustomMenuShow(Index, "Npc 1", "\GUI\CUSTOM\Background.bmp", 1)Call CustomMenuPicture(Index, 0, "\GUI\CUSTOM\randompicturefilewhichisjustextonacertaincolourbackround.bmp", 3, 32)```And if those are clicked you can just call an Onclick ;D Link to comment Share on other sites More sharing options...
Kimimaru Posted July 21, 2009 Share Posted July 21, 2009 He wants one that looks like a Windows box that pops up. Also, a MsgBox is probably easier to do, since you don't have to create anything custom. All you have to do is edit the text and the title. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 21, 2009 Share Posted July 21, 2009 @Kimimaru:> Note that there are no parenthesis in this syntax, unlike most other functions.Not necessarily; I've gotten it to work by using parenthesis in the past, though I suppose they are not needed.E.g. my [Rick Roll Script](http://www.touchofdeathforums.com/smf/index.php/topic,47649.0.html), which is actually the first script that I've seen use the msgbox. Link to comment Share on other sites More sharing options...
Kimimaru Posted July 21, 2009 Share Posted July 21, 2009 Oh, okay. Thanks for telling me about that. I've tried it with parenthesis before, but it didn't work. I must've wrote it like this:```MsgBox ("text", 0, "title")```The way you have it, there's no space in between the word **MsgBox** and the parenthesis. I still prefer to use it without parenthesis, but either way works fine, I suppose. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now