Talk:MessageBoxEx

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Rank-Spell Switch[edit source]

What was the reason for the rank-spell switch? Factions seem to be easier to set up, and should require less space.--Haama 10:32, 26 March 2008 (EDT)

Factions aren't dynamic though. Spell effects allow much more control over what is in the list of possible text options, as well as transfer of options between lists etc etc, whereas factions are static. :--Quetzilla 11:45, 7 May 2008 (EDT)

With SetNameEx I think the info on Switched Text would be useful to more than just MessageBoxEx and probably belongs on the OBSE Format Specifiers page under the %c info.
--quetzilla 10:57, 13 August 2008 (EDT)

Conditional Returns?[edit source]

Quick question: is it at all possible to condition returns (%r)? Say I had a series of conditional strings, using %{...%}, and I wanted the ones that appear at any given time to be on their own line in the message box, but I didn't want there to be blank lines from when a line isn't displayed, but the return happens anyways, since it has to be outside the conditional brackets. Hope that makes enough sense to warrant a reply.--Ventus 03:16, 5 April 2008 (EDT)

Just include the %r within the optional section.
MessageBoxEX "Blah blah blah%{%r%roptional thingy 1%}%{%r%ranother optional thingy 2%}" bool1 bool2
The "Blah blah blah" will always display. If bool1 is true, then "optional thingy 1" will appear on its own line, and if bool2 is true, then "optional thingy 2" will appear on its own line.
Dragoon Wraith TALK 04:44, 5 April 2008 (EDT)
I've tried that, but for some reason my code crashes the game if there is a %r inside the brackets. Alternately, I've tried less complex code like you posted with very different results.
short bool1
short bool2

Begin ScriptEffectFinish

set bool1 to 0
set bool2 to 1

MessageBoxEX "Blah blah blah%{%roptional thingy 1%}%{%ranother optional thingy 2%}" bool1 bool2

End
That, oddly enough, results in a message box that only says "Blah blah blah." None of the text after appears. So, at this point, I'm just confused. Luckily I'm just trying to learn about MessageBoxEX, not actually incorporate it into a mod.--Ventus 18:00, 5 April 2008 (EDT)
Hmm... sounds like you should be posting a possible bug report on the OBSE thread.
Dragoon Wraith TALK 19:15, 5 April 2008 (EDT)

Page for EX functionality?[edit source]

I was thinking that with the new SetNameEx function in 0015 that it might be a good idea to give the Ex formatting its own page, or at least to cleanup the message formatting and MessageEx formatting templates. Currently the Ex function pages all look rather messy. Since the Ex stuff is one of the most useful features of 0014/0015 I think the pages for them should be as clear and helpful as possible. --Quetzilla 11:48, 7 May 2008 (EDT)

You're going to have to be specific and/or make a test template page that you think would be better...--Haama 13:06, 7 May 2008 (EDT)

Depreciated?[edit source]

Based on OBSE doc [1], it looks like this function is depreciated as of OBSE 20, but no alternative is given. Anyone have any insight into this change or an alternative? 8asrun6aer 20:03, 4 January 2012 (EST);

I think that has to do with the fact that with OBSE v0020, you can use the compiler override feature to pass a String_Var to MessageBox, eliminating the need for this kind of maybe. Personally, I find the format specifiers more useful sometimes.