Difference between revisions of "Talk:StrSet"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(MessageBox style variable inclusion?)
 
imported>Tibixe
Line 1: Line 1:
Tibixe, would it be possible to get this to use the standard [[MessageBox]] style notation for including variable values? That would extremely useful.<br />
Tibixe, would it be possible to get this to use the standard [[MessageBox]] style notation for including variable values? That would extremely useful.<br />
[[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>]] 11:57, 10 August 2007 (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>]] 11:57, 10 August 2007 (EDT)
I can't use '%' because the built-in script interpreter does weird things. What StrSet does is replaces '$' with '%' and passes all the parameters to sprintf() (A C function)
This notation is documented [http://en.wikipedia.org/wiki/Printf#printf_format_placeholders here]. This is very similar to MessageBox.
[[User:Tibixe|Tibixe]] 06:22, 11 August 2007 (EDT)

Revision as of 05:22, 11 August 2007

Tibixe, would it be possible to get this to use the standard MessageBox style notation for including variable values? That would extremely useful.
Dragoon Wraith TALK 11:57, 10 August 2007 (EDT)

I can't use '%' because the built-in script interpreter does weird things. What StrSet does is replaces '$' with '%' and passes all the parameters to sprintf() (A C function) This notation is documented here. This is very similar to MessageBox. Tibixe 06:22, 11 August 2007 (EDT)