kert349 Posted March 10, 2011 Share Posted March 10, 2011 (edited) Hello is there in NV scripting or in NVSE possibility to add strings together or do string formatting?so you could show the player messages from constructed string via ShowMessage. thx. Edited March 10, 2011 by kert349 Link to comment Share on other sites More sharing options...
davidlallen Posted March 10, 2011 Share Posted March 10, 2011 The wiki page for showmessage lists the "format specifiers" you can use. If you are familiar with "printf" statements in any programming language such as C++, it is basically same. Link to comment Share on other sites More sharing options...
Floatsup Posted March 10, 2011 Share Posted March 10, 2011 You could check this out http://geck.bethsoft.com/index.php/ShowMessage See if that helps you. You can use variables in the message itself. I know because I accidentally did that, and got a result I wasnt expecting. using the % sign to call it. Plus you use a script to activate the message so you could probable do something with that also. Link to comment Share on other sites More sharing options...
kert349 Posted March 10, 2011 Author Share Posted March 10, 2011 I previously understood from the article that you can only add Numbers to the string. but not strings to string? Link to comment Share on other sites More sharing options...
rickerhk Posted March 10, 2011 Share Posted March 10, 2011 There is currently no string support in the scripting engine or in NVSE. Link to comment Share on other sites More sharing options...
davidlallen Posted March 10, 2011 Share Posted March 10, 2011 (edited) This programming language, whatever it is called, does not appear to allow strings as variables. That limits how much you can do with formatting, I guess. What is the particular effect you want to achieve? Edit: #$%(%#($ !! Ninja'd twice in two minutes. Must learn to type faster. Edited March 10, 2011 by davidlallen Link to comment Share on other sites More sharing options...
kert349 Posted March 11, 2011 Author Share Posted March 11, 2011 i just want to show message telling what each faction does. Like "NCR has occupied the town of primm" or "Caesars legion has occupied the town of primm" Link to comment Share on other sites More sharing options...
davidlallen Posted March 11, 2011 Share Posted March 11, 2011 Instead of constructing a string by programming, can you make separate message objects, one for each possible value? Link to comment Share on other sites More sharing options...
kert349 Posted March 11, 2011 Author Share Posted March 11, 2011 that would be too many message objects...I wonder if they could make NVSE add the message objects together... for showmessagebut i think nvse team takes no addition suggestions... Link to comment Share on other sites More sharing options...
davidlallen Posted March 11, 2011 Share Posted March 11, 2011 Probably this feature no longer exists, but the TES wiki lists a function "message" which takes a string: if (condition1) message "NCR has occupied Primm" elseif (condition2) message "Legion has occupied Primm" endif The geck wiki has a page for this, but it redirects to showmessage. It may be worth a quick experiment. Link to comment Share on other sites More sharing options...
Recommended Posts