NPC Outside the camp?
Débuté par
Sousuke_
, juin 01 2011 05:31
#1
Posté 01 juin 2011 - 05:31
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?
#3
Posté 01 juin 2011 - 08:02
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
Posté 01 juin 2011 - 08:48
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
Posté 02 juin 2011 - 04:27
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.
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
Posté 02 juin 2011 - 04:21
Exactly. Thx, I just had to change the AreaListName to any and voila, now I can spawn the NPC anywhere.





Retour en haut






