I created a small module for DA that brings up a merchant at the party camp, following the instructions in this tutorial http://dragonagemodd...rs-camp-part-1/
Everything works fine
Now, it would be nice if the merchant spawns only if the player's spared Zevran's life and takes him in his party (because he also comes from Antiva and also attempts to escape the Crows, selling his stuff in return for protection in camp...)
How to add the condition that Zevran is indeed at the camp?
Can I just do like for the merchant? (something like " object oFollower = UT_GetNearestObjectByTag (oPlayer,"zevran"); and IsObjectValid(oFollower)) or must I use a plot-flag, or...?
Here's my script:
#include "wrappers_h"
void main()
{
object oPlayer = GetMainControlled();
DisplayFloatyMessage(oPlayer, "Emporium", FLOATY_MESSAGE, 16777215, 20.0);
object oMerchant = UT_GetNearestObjectByTag (oPlayer,"vendel");
if (!IsObjectValid(oMerchant))
{
object oArea = GetObjectByTag("cam100ar_camp_plains");
location lMerchantLocation = Location(oArea, Vector(163.5444205, 131.740692,-1.661039), 85.4);
CreateObject(OBJECT_TYPE_CREATURE, R"vendel.utc", lMerchantLocation);}}
sorry for my rudimentary English, I use a translator ... I hope my question is understandable.





Retour en haut






