Jump to content

Setting conditions: Dialogue problems


assterixxx

Recommended Posts

I got a problem! I'm doing a questline for upgrading my player house, and for that I need my "vendor" to give me some upgrade options. So far so good. But I also need the quest to detect:

1. Do I have the right stuff to get the upgrade.

2. Have I already done the upgrade?

 

So that would mean having two condition for each upgrade (is Xmarker01 disabled OR is UpgradeQuest01 = 30). Here is where it gets tricky; I only got 1 dialogue option for all those upgrades (I would like to expand my lair...) and would like my npc to respond with with "There is nothing to build at the moment" and "You can't expand any more" instead of just quitting the dialogue if he has nothing to say.

I have tried getting a ton of "and" and "or" conditions bound to that line... but that didn't work - obviously. Now I'm on quest aliases. I have set up all the aliases, but I have no idea what function to use to get them. I have tried all that makes sense to me (GetIsReference, GetIsAliasRef...), but I can't get it to work.

 

Any guru out there that knows what function I should use?

Link to comment
Share on other sites

Do you have the stuff:

 

RUN ON PLAYER GetItemCount AAMyItem1 >= 10 AND 
RUN ON PLAYER GetItemCount AAMyItem2 >= 7 AND 

 

Have You done the upgrade:

 

Create variables and change their values in dialog result scripts when a purchase is made. Then refer back to the values of these variables when you need to know if the upgrades have been done.

 

 

Fie on aliases. Unless you are a genius scripter you will wreck your mod.

Edited by David Brasher
Link to comment
Share on other sites

Thanks for the reply. I think you have misunderstood me, probably because of my poor description.

 

First off, the conditions for getting the upgrade is not related to ore, gold or wood, so the GetItemCount doesn't really help. But I can see why you would think that from my first description.

 

Secondly, I'm not looking for the conditions to get an expansion build, I already got those done. The quest "works" right now - apart from the NPC exits all dialogues if he cant give me options.

I'm looking for the conditions to get the dialogue "You don't have all you need" based on two conditions: is the XmarkerXX disabled OR is UpgradeQuestXX < XX.

 

The Dialogue I have problems with:

 

Id like to build... ->

Nothing more to build (GetStage > xx)

Can't right now (Problem area)

Sure. What... (no conditions, but more choices with conditions)

 

But the point you made on variables was a good idea! Now, if I'm building a variable how can I make it global? Or semi global... I need the variable to be accessible throughout UpgQuest01 - 04. Is that even possible? Ir do i have to make more then 1 variable?

 

I appreciate the time you took to answer my noob questions!

Edited by assterixxx
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...