Variable %PCName type

Post » Sun Jan 10, 2010 10:15 am

hello! is it possible to create variables similar to %PCName or %PcClass etc. which can be used in books or scrolls? It is used in CharGen Scroll at the beginning of the game, where we have written our name, class and birthsign as far as I remember. I would like to create something like &PCFaction or %PCAlignment and more and more but is there any possibility? Thank you in advance
User avatar
Richard Dixon
 
Posts: 3461
Joined: Thu Jun 07, 2007 1:29 pm

Post » Sun Jan 10, 2010 7:12 am

Text defines are hard coded, but there are other functions you could use with scripts;

^PCName
^PCClass
^PCRace
^PCRank
^NextPCRank

Not sure if these could be used in a book or scroll though.
User avatar
CArla HOlbert
 
Posts: 3342
Joined: Wed Feb 21, 2007 11:35 pm

Post » Sun Jan 10, 2010 11:32 am

IIRC in book/scrolls you can use both ^ and % prefix, but I'm not entirely sure.
Anyway, if you need one of the textual functions (see http://www.scribd.com/doc/7007668/Morrowind-Scripting-for-Dummies-9 page 105) you are limited to standard ; if you need a numeric value you have more freedom, you should be able to assign the value to a global variable and show it in the scroll with ^globalvarname (be sure to not change the variable when the scroll is already open)
User avatar
Emily Rose
 
Posts: 3482
Joined: Sat Feb 17, 2007 5:56 pm

Post » Sun Jan 10, 2010 4:29 pm

Yeah, I know about global variables, albeit I need to use non-numeric values. I will try with in-game variables, maybe I will get around with this trouble. Thank you anyway
User avatar
jennie xhx
 
Posts: 3429
Joined: Wed Jun 21, 2006 10:28 am

Post » Sun Jan 10, 2010 6:57 am

Yeah, I know about global variables, albeit I need to use non-numeric values. I will try with in-game variables, maybe I will get around with this trouble. Thank you anyway


you want to use "string" variables.

MWSE allows this. not sure if it allows the usage in a way that you want, but it is possible to store string information.
User avatar
Andrea P
 
Posts: 3400
Joined: Mon Feb 12, 2007 7:45 am


Return to III - Morrowind