Aller au contenu

Photo

NPC Outside the camp?


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Sousuke_

Sousuke_
  • Members
  • 5 messages
I am looking for a way to create a custom NPC  -OUTSIDE- the camp, I want to spawn a npc in denerim or orzammar for example,  I am able to create merchants, dragons or whatever  inside the camp, but i wanted to create a NPC or something in other areas of the main game. Anyone? Tutorial? Tips? Scripts? Blood magic? :P

#2
Proleric

Proleric
  • Members
  • 2 360 messages
This may help. You'll probably want to read the main article on PRCSCR, too (see link at top of page).

#3
Sousuke_

Sousuke_
  • Members
  • 5 messages

Proleric1 wrote...

This may help. You'll probably want to read the main article on PRCSCR, too (see link at top of page).


Ty, got some valuable info, but still, can't spawn the NPC in another area but camp, I'm using this code:

#include "wrappers_h"
void main()
{
object oPlayer = GetMainControlled();
object oMerchant = UT_GetNearestObjectByTag(oPlayer, "mr_talk");
if (!IsObjectValid(oMerchant))

    {
        object oTown = GetObjectByTag("cam100ar_camp_plains");
        location lMerchantLocation = Location(oTown, Vector(152.842,124.248,-0.521628), 0.0);
        CreateObject(OBJECT_TYPE_CREATURE, R"mr_talk.utc", lMerchantLocation);
    }
}


Works fine in the camp but when I change from  "cam100ar_camp_plains" to "den200ar_market" with the respective vector, nothing.
Someone told me that I have to start another gameplay and create the NPC's before, but I'm not sure. Any idea?

#4
Sousuke_

Sousuke_
  • Members
  • 5 messages
Just started another game to test and, works fine with a new game. Tested with dalish background and managed to put the NPC behind the 3 humans. Still looking for a way to add the NPC inside the current gameplay.

#5
Proleric

Proleric
  • Members
  • 2 360 messages
Presumably you have this set up as a PRCSCR script, with the 2DA configured to run the script in Denerim?

Otherwise, it won't work, because normal areas are only visible to GetObjectByTag when the player is in the same area list.

If you have set this up correctly, try Googling

site:social.bioware.com "dragon age" denerim prcscr

for discussion of a known issue affecting Denerim.

#6
Sousuke_

Sousuke_
  • Members
  • 5 messages
Exactly. Thx, I just had to change the AreaListName to any and voila, now I can spawn the NPC anywhere.