Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > MapHaven Guild > Thread: Problem with Quest Hut
Thread: Problem with Quest Hut
Grythandril
Grythandril


Famous Hero
who is a Chaotic Wizard
posted September 28, 2003 03:24 PM

Problem with Quest Hut

I am trying to create a quest hut where it will buy only level one order parchments or scrolls for a price.

The principal works except it will take any scroll at any level at any magic alignment which is very frustrating.

I am using a conditional action where it search for a particular spell scroll followed by a question for which if the answer is yes then it will take that scroll for money.  

But it cant seem to link the spell scroll with the one in the hero and takes them all

Can anyone help?
____________
Might is Power
Magic is Power
Honor is Power

Power Rules Above All

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
GhostWriter
GhostWriter


Adventuring Hero
EtherLight
posted September 28, 2003 10:10 PM

That's strange, seems like it should work.

Well, there may be a solution, but you're not going to like it.  Set a variable to true if the hero has a particular parchment of any level or school.  Basically, check for every parchment, and record the results.  If he doesn't sell a parchment, don't do anything.  If he does, let the game take them all and give back the ones he had, minus the sold ones.  It sucks, but in theory it should work.
____________
~Celestial Heavens~

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Grythandril
Grythandril


Famous Hero
who is a Chaotic Wizard
posted September 28, 2003 11:18 PM

Can you elaborate a bit more cause that sounds very complicated.  Give an example please.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
dragonsister
dragonsister

Hero of Order
MapHaven administrator
posted September 29, 2003 12:10 AM

I think it goes more or less like this:

When the hero arrives at the quest hut, look through his scrolls and record which ones he has (by making a variable for each possible scroll, and setting it to true if the hero has that scroll).

Then run your script more or less as you already do.  When the hero which scroll to buy, set *that* variable to true too.

Then go through the list of all possible scrolls.  If the variable for that scroll is true, do nothing; if it is false, remove that scroll from the hero.

Of course, it would be rather neater if we could find and fix a bug in your code - it is unfortunate that sometimes it's the 3DO code that's at fault.  Have you ever used Slava's utility for converting map scripts to C-style code?  We might be able to look at this here.

DragonSister
____________
MapHaven

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Grythandril
Grythandril


Famous Hero
who is a Chaotic Wizard
posted October 01, 2003 04:30 PM

So what would true mean?

and what would false mean?

and the variable?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
GhostWriter
GhostWriter


Adventuring Hero
EtherLight
posted October 02, 2003 06:04 AM

True and False are used for boolean variables only.  They just give you a simple way to tell if something is there or not.  For example:

If this army has artifact (scroll of something)
Then Set "has_scroll_of_hypnotize" (you can use whatever name you want, but not spaces) to True
Else Set "has_scroll_of_hypnotize" to False

In another script you can have:

If "has_scroll_of_hypnotize" (meaning it is true)
Then Ask "Do you want to sell the scroll of hypnotize?"
--- If yes then Take scrool of hynopize, give xxxx gold
--- Set "has_scroll_of_hypnotize" to False
--- If no then do nothing
Else do nothing

This is why it gets very complicated when you need to have a chunk of script in several places for every single scroll and/or parchment in the game, but it can be done.
____________
~Celestial Heavens~

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Grythandril
Grythandril


Famous Hero
who is a Chaotic Wizard
posted October 04, 2003 04:13 PM

Thanks I will try and work this out from your tips.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Grythandril
Grythandril


Famous Hero
who is a Chaotic Wizard
posted October 04, 2003 06:34 PM

Still having problems.  I created a sequence using the following code like you suggested.

If this army has scroll of Bless
Then
Set "Bless" to True
Else
Set "Bless" to False

Right after that is the next part:

If "Bless"
Then Ask "Sell the Scroll of bless?"
If yes
Then
Take scroll of Bless
give 100 gold
Set "Bless" to False
If no then do nothing
Else do nothing

I did this with all the first level Life scrolls

And outside i put four scrolls, 2 of which are bless and bind wound, the other two were banish and magic fist.

when visiting the quest hut it still took all four of the scrolls.

Am i doing something wrong?




 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
GhostWriter
GhostWriter


Adventuring Hero
EtherLight
posted October 05, 2003 07:42 AM

I was curious what problem you were having so I ran a number of test.  I set up a triggered script using a modified version of the script I wrote above using three different scrolls.  You can download the test map here if you want to play around with it.  Sorry to say that what you want to do doesn't work no matter what, because the game simply can't identify a particular parchment or scroll for some stupid reason, which means that no matter how you design the script, the correct scroll cannot be taken.  I tried doing it with just one scroll, and that works, but only if the hero has that scroll and no others.  I also tried triggering a script on the hero to see what scrolls he had, in case it's a problem just with quest hut scripts, but that doesn't work either.  The method I wrote above doesn't work because it will identify any scroll as being there when asking the first question.  Anyway, I never got the problem of it taking all scrolls at once, but that hardly matters if it csn't identify particular scrolls.

This really sucks, and I'm really surprised that I've never heard of anyone else running into this problem.  Sorry, but I think you will have to come up with a different quest.  You could try doing this with a placed event, but my guess is you will get the same result.
____________
~Celestial Heavens~

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Grythandril
Grythandril


Famous Hero
who is a Chaotic Wizard
posted October 05, 2003 11:35 AM

Thanks. At least you tried. I was begining to think it was me that was doing something wrong.

I will try something else.

Oh how I wish they make the campagain editor more user friendly rather than making it so damn complicated.  

I hope ubisoft make it more easier than trying to understand.  

Making maps is getting more like programming these days.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
LordTitan
LordTitan


Famous Hero
Hit Dice: 76d12+608 HP
posted October 05, 2003 05:08 PM

?

I don't even use true or false and it still works.
____________
Spaek the Titan

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Grythandril
Grythandril


Famous Hero
who is a Chaotic Wizard
posted October 05, 2003 05:35 PM

how do you get the quest hut to work where it does not remove all the scrolls?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0261 seconds