Difference between revisions of "Talk:MessageBoxEx"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Quetzilla
imported>Quetzilla
(Page for EX functionality?)
Line 26: Line 26:
:::Hmm... sounds like you should be posting a possible bug report on the [http://www.bethsoft.com/bgsforums/index.php?showtopic=827022 OBSE thread].
:::Hmm... sounds like you should be posting a possible bug report on the [http://www.bethsoft.com/bgsforums/index.php?showtopic=827022 OBSE thread].
:::[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 19:15, 5 April 2008 (EDT)
:::[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 19:15, 5 April 2008 (EDT)
== Page for EX functionality? ==
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. --[[User:Quetzilla|Quetzilla]] 11:48, 7 May 2008 (EDT)

Revision as of 10:48, 7 May 2008

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)

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?

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)