View Single Post
Old 01-05-2004, 06:56 AM   #20
override367
 
override367's Avatar
 
Join Date: Apr 2003
Posts: 58
I am actually pretty unfamiliar with scripting, how would I write a script to change a variable?

for instance if a script looked like this (just an example I know there is no such function)

cColor = getplayercolor;

in this case how would I change cColor? not what comes after the = sign, I want to change the actual result of the getplayercolor

actually let me show what I actually want to do, this returns what the player's class is

int nClass = GetClassByPosition(1,GetFirstPC());

so isn't there a way to write a command to change the RESULT of get nClass (like if the getclassbyposition returned CLASS_TYPE_SCOUNDREL that would be nClass, could I change it to say.. .CLASS_TYPE_JEDISENTINEL)

I don't see why this shouldn't be possible, then again I don't always remember to put pants on in the morning and sometimes pour coffee in my cereal thinking it's milk
override367 is offline   you may: quote & reply,