Jump to content

Home

TSL scripting question


Recommended Posts

I'm not sure if the script I'm looking for actually exists, but I suppose it couldn't hurt to ask...

 

I understand that there are scripts in TSL that give the character a specified amount of Lightside, or Darkside points, but is there a script that actually sets the main pc's ls/ds spectrum to a specific number?

 

What I mean is; is it possible to create a script that can automatically set a character's afilliation to, let's say 100 (lightside mastery) or 0 (ds mastery) or even 50 (neutral)?

 

 

and if this can in fact be done, could someone show me how to do it?

 

Thanks in advance, any help with this is much appreciated. :)

Link to comment
Share on other sites

I understand that there are scripts in TSL that give the character a specified amount of Lightside, or Darkside points, but is there a script that actually sets the main pc's ls/ds spectrum to a specific number?

 

You can use the SetGoodEvilValue() function for this. The first parameter is the creature object to modify the alignment of, and the second is the alignment value, 0-100, to set.

 

For example...

SetGoodEvilValue(OBJECT_SELF, 100);

...would give the creature running the script lightside mastery.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...