Jump to content

Home

what is the entrance?


Pikmin

Recommended Posts

Also what command does a script use to check if a global equals x or not?

if(GetGlobalNumber("name_of_your_global")==x) //if yor global = x...
{
//do something
} else {
//do something esle... Or just remove else and it'll do nothing
}

That should work for you. Just change "x" to any number, and of course name_of_your_global to name of your global ;)

Link to comment
Share on other sites

Thanks!

 

So will the following work? If the global equals 1 it will load unconc.dlg, and if it equals anything else it will load unconc2.dlg? Right?

 

void main()
{


    object oEntering = GetEnteringObject();


    if (GetIsPC(oEntering))
    {



          if(GetGlobalNumber("000_PC_IsDead")==1) 
{
ActionStartConversation(GetFirstPC(),"unconc.dlg");
} else {
ActionStartConversation(GetFirstPC(),"unconc2.dlg");
}


    // Now we need to launch the original script

    ExecuteScript("a_650removeparty", OBJECT_SELF);
}

Link to comment
Share on other sites

There is an even simpler way, which would be to rename the original OnEnter script (to, say, old_650rp.ncs), and then name your new script the same as the old OnEnter originally was (a_650removeparty.ncs). This means that the game will read your new script in the Override folder/module as the original, and then execute the script requested as it was asked to.

Link to comment
Share on other sites

There is an even simpler way, which would be to rename the original OnEnter script (to, say, old_650rp.ncs), and then name your new script the same as the old OnEnter originally was (a_650removeparty.ncs). This means that the game will read your new script in the Override folder/module as the original, and then execute the script requested as it was asked to.

 

That is basicly what i'm going to do.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...