Aller au contenu

Photo

Quest icon doesn't disappear at the end of a quest


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

#1
laurelhach

laurelhach
  • Members
  • 7 messages
Hi everyone,

I was wondering if the icon over the npc's head is supposed to disappear automatically when you complete a quest.
I tried different option like removing it using the the floating icon / plot icon function. But it never worked.

I was wondering if the icon is supposed to disappear automatically or if we need to call a specific function / event.

Thank you for your help.

PS: Great work from the Bioware team! You made an amazing work.

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
There are two separate types of icons for quests and quest givers - there is the plot assist icon which is controlled entirely withing the plot editor - this you must set the status to No on the end plot flag in order to remove this icon.



Alternately, there is the plot giver icon (the exclamation point) which can be enabled in the creature editor and is toggled on or off with the SetPlotGiver function.

#3
laurelhach

laurelhach
  • Members
  • 7 messages
 Thank you Craig,

I used the SetPlogGiver function and it worked (well... of course it would work :))

I have another question not related to the icon, but within the same script.
Here are the details below :

// set flag for the current plot and remove the icon.

#include "events_h"
#include "plt_irqus_plotdialog"
#include "wrappers_h"

void main()
{
event eCurrent = GetCurrentEvent();
int nTypeCurrent = GetEventType(eCurrent);
object oOwner = GetEventCreator(eCurrent);
object oQuester = GetObjectByTag("irqus_qv");

WR_SetPlotFlag(PLT_IRQUS_PLOTDIALOG, QUEST_COMPLETED, TRUE);
SetPlotGiver(oQuester, FALSE);
}

If I change oQuester for oOwner in the SetPlogGiver line, the exclamation mark won't disappear (nothing happens). Also, I have not been able to use something else than the GetObjectByTag function. I was wondering if we could use something else (something more generic).

Thank you for your help.

#4
Craig Graff

Craig Graff
  • Members
  • 608 messages
What is firing this script? It sounds like you're getting this error because the event is either invalid or is not the same creature as oQuester.

#5
laurelhach

laurelhach
  • Members
  • 7 messages
Hi Craig,
Sorry for the delay.
The script is triggered at the end of the conversation (Player is ending the conversation) and complete the quest (he found the item). The script is added in the script "action" section under the "Plot and Scripting" Tab.

Modifié par laurelhach, 26 novembre 2009 - 01:34 .