Skip to content

Which script makes Anomen, Korgan and Nalia spawn in the Copper Coronet?

AKrugBierAKrugBier Member Posts: 110
Can't find any references of these characters in the .ARE, nor in the .BCS file of AR0406.

Have been trying to pin down the location of the CreateCreature lines via the search function of NearInfnity, but I got not even one hit when looking through every .bcs or .dlg file.

Can somebody please help me out on this one?

Comments

  • CamDawgCamDawg Member, Developer Posts: 3,438
    The original NPCs are defined in the GAM file. Which specific creature file to use is determined by npclevel.2da.
  • AKrugBierAKrugBier Member Posts: 110
    edited May 2016
    So, is it not possible to prevent one NPC from spawning in the Copper Coronet then?

    (I only want Nalia to spawn if I have more than 3 npcs in my party)
  • rapsam2003rapsam2003 Member Posts: 1,636
    AKrugBier said:

    So, is it not possible to prevent one NPC from spawning in the Copper Coronet then?

    (I only want Nalia to spawn if I have more than 3 npcs in my party)

    No, it's not. But you can just leave the others there. What's the problem there?
  • argent77argent77 Member Posts: 3,478
    You can probably do the reverse and remove Nalia if you're entering the tavern as a party of three members or less.
  • AKrugBierAKrugBier Member Posts: 110
    argent77 said:

    You can probably do the reverse and remove Nalia if you're entering the tavern as a party of three members or less.

    Might this work?

    IF !InParty("Nalia") NumInPartyLT(4) !Global("NaliaMove","GLOBAL",1) THEN RESPONSE #100 Deactivate("Nalia") END IF !InParty("Nalia") NumInPartyGT(3) GlobalLT("NaliaMove","GLOBAL",2) THEN RESPONSE #100 Activate("Nalia") END

    Can't test it at the moment.

  • argent77argent77 Member Posts: 3,478
    You should probably add a variable so that the script blocks are not executed repeatedly, like this:
    IF !InParty("Nalia") NumInPartyLT(4) Global("XXNaliaDisabled","MYAREA",0) THEN RESPONSE #100 SetGlobal("XXNaliaDisabled","MYAREA",1) Deactivate("Nalia") Continue() END IF !InParty("Nalia") NumInPartyGT(3) Global("XXNaliaDisabled","MYAREA",1) THEN RESPONSE #100 SetGlobal("XXNaliaDisabled","MYAREA",0) Activate("Nalia") Continue() END
    Or, if you don't want her to appear as soon as you invite Anome and/or Korgan into the party, you could also add an OnCreation() trigger. That way the script blocks are only executed the first time you enter the tavern per session.
Sign In or Register to comment.