Euflorium: The Eufloria Community

Eufloria => Eufloria Classic => Eufloria Classic Mods => Topic started by: Mihhaelo on July 02, 2010, 11:34:05 PM

Title: MessageBox Query
Post by: Mihhaelo on July 02, 2010, 11:34:05 PM
I know you can use MessageBox like this, to display messages.
(click to show/hide)

And i know you can also use it like this, to display variables.
(click to show/hide)

Is it possible to display both a message and variable in one messagebox? And how would the code look?
Title: Re: MessageBox Query
Post by: w4tc on July 03, 2010, 02:48:24 AM
is it not this?

(click to show/hide)
Title: Re: MessageBox Query
Post by: Mihhaelo on July 03, 2010, 03:26:36 AM
Hmmm, that didn't work. Thanks for the suggestion though.
Title: Re: MessageBox Query
Post by: annikk.exe on July 03, 2010, 04:15:12 AM
I have wondered the same thing, actually.  I am afraid I am no wiser than you on this.  Will watch this thread with interest though.. :>
Title: Re: MessageBox Query
Post by: w4tc on July 03, 2010, 04:29:34 AM
Hmmm annikk is it possible that is a String?

@Mihhaelo can you gave me you lua in code?
xD becaus xD i never try things in time
i wanne see it :p

it is also something with this :[[]] ect.
try it

(click to show/hide)
Title: Re: MessageBox Query
Post by: Pilchard123 on July 03, 2010, 10:40:45 PM
The concatenation operator in LUA is .. (two dots), so to make a message box say 'Your score is:', then the score, I think you would use

Code: [Select]
Pause()
  MessageBox("Your score is:" .. score)
  WaitDialog()
  Unpause()

EDIT:Yeah, that works.
Title: Re: MessageBox Query
Post by: Mihhaelo on July 04, 2010, 01:11:02 AM
Thank you very much for that, you're a legend  :D
Title: Re: MessageBox Query
Post by: annikk.exe on July 05, 2010, 06:10:46 AM
Sweet :>