Aller au contenu

Photo

Plot Giver Marker


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

#1
Halchek

Halchek
  • Members
  • 36 messages
I am working through the wiki tutorials and have a little scenario set up involving a quest giver and a few hurlocks.

I noticed that my quest giver was missing the "Quest Giver Marker" as usually seen in the game and I discovered I can add this by setting the NPC.[Quest Giver] property to true.  However the marker remains above the quest givers head regardless of the status of the quest.

Could anyone point me toward some material setting monster properties via scripting as I'm still having trouble getting around this framework?

Regards

Paul

#2
Phaenan

Phaenan
  • Members
  • 315 messages
Not sure myself, but I'm sticking in hoping someone will know.
As for myself, I tried the creature's "Quest Giver" property as you did, and quickly dropped that idea because the quest indicator is then pretty persistent.
Then I tried WR_TogglePlotIcon() or even ShowFloatyIcon(oCreature, "PlotDestination") directly, but this time around the opposite happened: the quest marker would disappear as soon as the player uses the GUI, like opening the inventory, etc. :mellow:

#3
SilentCid

SilentCid
  • Members
  • 338 messages
WR_TogglePlotIcon(object oCreature, int nActive); is the script function to turn on/off the Quest Giver Marker.

#4
Phaenan

Phaenan
  • Members
  • 315 messages
Naah. Unless something goes wrong in my installation.
First of all, the PlotDestination icon shown by WR_TogglePlotIcon isn't the same as the quest marker activated by the "Plot Giver" creature's property.
Then, as I said above : the WR_TogglePlotIcon() is removed as soon as some wind blows, and Thedas is pretty windy in this time of the year.
As for the "Plot Giver" creature's property, it ain't turned down by WR_TogglePlotIcon(oCreature, FALSE) . What it does is temporarily hide the "!" icon, but then again it's the same as when we're using WR_TogglePlotIcon() to show an icon : the state is reverted to its default as soon as a part of the gui is opened. (and the "!" pops again)

Modifié par Phaenan, 08 décembre 2009 - 12:16 .


#5
Craig Graff

Craig Graff
  • Members
  • 608 messages
The function you want is SetPlotGiver is the function you want for the exclamation point icon.



The plot destination icon is best handled through the Plot Assist tab in the Plot Editor.

#6
Phaenan

Phaenan
  • Members
  • 315 messages
I completely missed that function when I was looking through the list for anything that could help. Maybe I was to fixated on searching for "icon" or "mark" or this kind of stuff.

Anyway.

Cheers once again. :o

#7
Halchek

Halchek
  • Members
  • 36 messages
Excellent a good step in the right direction. Now given I have the following as my complete script :-



void main()

{

SetPlotGiver(martha, FALSE);

}



Given that martha is my quest giver, how do I assign a reference to martha?



Thanks for all the previous help.



Paul

#8
Ashmaran

Ashmaran
  • Members
  • 52 messages
You would use something like:



object oMartha = GetObjectByTag("martha");

SetPlotGiver(oMartha, FALSE);



Where "martha" is the tag for your quest giver.

#9
Halchek

Halchek
  • Members
  • 36 messages
Well of course it is! :-p



Thanks all.



Regards



Paul

#10
Halchek

Halchek
  • Members
  • 36 messages
some posting strangeness

Modifié par Halchek, 08 décembre 2009 - 10:59 .