Abubaker Posted November 15, 2017 Share Posted November 15, 2017 (edited) I know... Use NV instead...But I need a name of reference in messageBox yet from what I've found there is really no use for ref in messages... Or is there? FOSE have no MessageEx nor MessageBoxEx implemented and regular GECK does not provide good old GetName... Is there any good workaround or ... is there no reason to use ref in messages ever?Or maybe I'm blind or stupid and its simple and I just don't get it? Please help. Sincerely Abubaker. Edited November 15, 2017 by Abubaker Link to comment Share on other sites More sharing options...
Mktavish Posted November 16, 2017 Share Posted November 16, 2017 Do you just mean how it says this in the instruction ... ? "ShowMessage MessageID:ref var1:var var2:var ... var9:var Duration:int" The ref they refer to there ... is what you name the note object reference-ID ,which appears in the render window ... when you drop the object in.Otherwise ... use the number/letter in (parenthesis) "form ID" to the right of where you type in a ref-ID Link to comment Share on other sites More sharing options...
Abubaker Posted November 16, 2017 Author Share Posted November 16, 2017 Well... I know how to use ShowMessage but I want to display string variable and so far I do not see any way of doing that. ShowMessage handles only numbers as variables and even if I try pass something else it is converted to numeric value. It can be given any kind of variable but it can print them only as numbers. At least this is only thing it prints for me. Link to comment Share on other sites More sharing options...
Mktavish Posted November 16, 2017 Share Posted November 16, 2017 (edited) ... Edited November 18, 2017 by Mktavish Link to comment Share on other sites More sharing options...
Mktavish Posted November 16, 2017 Share Posted November 16, 2017 (edited) ... Edited November 18, 2017 by Mktavish Link to comment Share on other sites More sharing options...
Mktavish Posted November 16, 2017 Share Posted November 16, 2017 Make your message ... then you have a script do something with it. As any other object to manipulate. Link to comment Share on other sites More sharing options...
Abubaker Posted November 17, 2017 Author Share Posted November 17, 2017 I know it's much to ask but could you provide an example of script changing the content of message? Because I can't find a way to do it... Link to comment Share on other sites More sharing options...
Mktavish Posted November 18, 2017 Share Posted November 18, 2017 I'm sorry to mis understand ... but is this what your talking about ... the part in orange ? FOSE Switches%r - Prints a carriage return, ending the current line and starting at the next.%n - Prints the name of the specified reference or object.%i - Prints the formID of the specified reference or object. GOTCHA : if a refVar is passed which points to a ref not loaded in memory %i will print 00000000 even if the refVar is not empty. Link to comment Share on other sites More sharing options...
Mktavish Posted November 18, 2017 Share Posted November 18, 2017 (edited) So with that ... first your ref of a base object ... must have a name if it's base-Id had a spot for it.Then the script like this .... SCN Myscript Int iRefGrab Begin OnTrigger If iRefGrab == 0 GetActionRef ShowMessage Mymessage %n Set iRefGrab to 1 endifEnd~~~~~~~~~~~~~~~~~~ But I may be wrong on that ... and of course there are other ways to get refs , and use different begin blocks. Hopefully that helps somewhat, unlike my previous posts. Edited November 18, 2017 by Mktavish Link to comment Share on other sites More sharing options...
Recommended Posts