When you first meet the NPC, this variable is set.
#include "x3_inc_skin"
void main()
{
// Find the PC //
object oPC = GetPCSpeaker();
//The Variable being set //
SetSkinInt(oPC, "npc_elf_allahRS", 15);}
Then theres' a text that only appears if this variable is lower then 11
----------------------------------------------------------------------------
#include "x3_inc_skin"int StartingConditional()
{
// Get the PC who is involved in this conversation
object oPC = GetPCSpeaker();
// Check a local variable.
if ( GetSkinInt(oPC, "npc_elf_allahRS") >= 11 ) return FALSE;
// If we make it this far, we have passed all tests.
return TRUE;}
---------------------
But for some reason, whenever I test it the message that appears under that condition keeps appearing despite the fact the variable should still be 15. The exact same script works for a different NPC so why wouldn't it work for this one?
Modifié par simomate2, 28 mars 2013 - 04:28 .