_:n40770d0fee75413c816613b63a1eb28fxb36
<http://schema.org/text>
"\n\tIn the mouseover function, you set a script variable named actorVal to the value of the trait _actorVal on the tile that has mouseover focus. If the tile in question is not a skill or attribute, you set the script variable actorVal to -1. Similarly, you set the script variable descr to the value of the trait _descript on the tile that has mouseover focus.\n\n\n\n\tWhat I need you to do is write the values of those two script variables to traits on the menu's root tile, so that I can use XML-side &lt;copy/&gt; operators to access them. The user6 and user7 traits aren't used for anything on that specific tile in that specific menu, which is why I picked them. In essence, I want to be able to do this:\n\n\n\n&lt;visible&gt;\n   &lt;copy src=\"menu()\" trait=\"user6\" /&gt; &lt;!-- actorVal, supplied by the script --&gt;\n   &lt;gt&gt;-1&lt;/gt&gt;\n&lt;/visible&gt;\n&lt;string&gt;\n   &lt;!-- I'd comment out the copy active() stuff --&gt;\n   &lt;copy src=\"menu()\" trait=\"user7\" /&gt; &lt;!-- descr, supplied by the script --&gt;\n&lt;/string&gt;\n\n\n\tWhat you're doing at present is setting the _descript trait on the tile that has menu focus, and you're setting it to the value that it already has. You're also not writing the actorVal variable to any tile in the menu. To write to the menu's root tile, you should just be able to do \"\\traitNameHere\".\n\n\n\n\tI also (and I just remembered this) need you to get me the name of the actor value as well -- so I need you to get the _name trait, store it in some variable, and write it to... let's say user8 on the menu's root tile. Then, I'll be able to grab that just like the stat description.\n\n\n\n\tThe \"canCreate\" boolean should create the trait that you're trying to set if it isn't already specified in the XML. Shouldn't be needed, but it just kinda feels thorough to me.\n\n\n\n\tEDIT: And again, if at any point this becomes too bothersome, I can probably set up a DLL-side fix fairly easily. I just don't want to go about messing with that if you're willing to try doing it through script; no use having both of us write code to do the same thing.\n\n"
<http://www.theassimilationlab.com/forums/topic/16625-northern-ui-compatibility/?page=3>