Jump to content

Ref variables in showMessage


Abubaker

Recommended Posts

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 by Abubaker
Link to comment
Share on other sites

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

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

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

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

 

endif

End

~~~~~~~~~~~~~~~~~~

 

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 by Mktavish
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...