Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Check NPC Goodevil

Page: 1 of 1
 shockix
02-15-2008, 7:12 PM
#1
Hi.

I would like to give Visas a prestige class.
So I created 3 scripts.
The firts one is to check the level and Goodevil of visas.
This one will determine if a specific string appears in vasas dialogue.

The 2 last scripts determine if Visas goodevil is greater or lower to a specific value.
This way, only dark side (or light side) prestiges classes will appear in the dialogue.

The problem is, even if Visas is good (good evil of 99), I can only choose sith classes.

Here is the code I use to determine if Sith classes appear in the dialogue :

int StartingConditional()
{
int nAlignLow = GetScriptParameter( 1 ); // The value goodevil must be lower to
int nAlign = GetAlignmentGoodEvil( GetObjetcByTag ("VisasMarr"); // Visas Goodevil
if ( nAlign <= nAlignLow ) return TRUE;
else return FALSE;
}

Even with a high goodevil, this script returns TRUE. It looks like the function GetAlignmentGoodEvil always return 0 and not the npc goodevil.

Does anyone know anything about this function ?
If really it doesn't work, how can I get Visas goodevil ?
Page: 1 of 1