PDA

View Full Version : What is the difference between break and endquest?


lexicat
January 21st, 2008, 04:45 PM
Can anyone provide an example of how they function differently?

Also: I still have not had a satisfactory answer to my previous question about the ENMY command. If I am friendly with a race, Zorg for example, and I proceed through a quest in which the command "ENMY zorg" is given, I find that I am still friendly with the Zorg, even if I have no/have removed any Zorg ship allies/escorts.

Help?

Lexicat

clomaka
January 21st, 2008, 06:32 PM
not sure about break/endquest. endquest seems more frequently used, but i have a quest that actually uses:
ACTN popup endquest break

i haven't had a problem w. the ENMY command; it might be the placement in the PAGE. here's mine for making the zorg hostile if you encounter them while carrying a certian item:

PAGE 0
REQ0 0
REQ1 1
ACTN popup endquest
MUSC music/vidcast.ogg
GFXP races/zorg.jpg 0
TITL Zorg Vidcast
TEXT blah
ENMY zorg
END PAGE

i have however had trouble making the garthan friendly if you deliver a certain item:(

my best suggestions are:
-base your quests off of similar ones that already exist/work. I can't always figure out why something that should logically work does not, but basing a quest off one that you know works gives you a head start.
-always attach some temp text describing what should be going on. i quickly found some quest were simply not firing when they should, or in the wrong order.

Phlagm
January 21st, 2008, 07:50 PM
Endquest totally kills the quest and no more pages from it will be evaluated. That way you don't have to worry about accidentally matching conditions long after a quest is over and done with.

Break... I dunno about break. I think it's supposed to interrupt action, like if you were flying to a planet, it would stop you and display the event. I don't know that the example I gave is actually a true one, but it's the general idea. On the other hand, I've never ever been able to get it to make a discernable difference for me.

lexicat
January 21st, 2008, 09:59 PM
Thank you so much!

Unfortunately your PAGE looks very much like my own. Other commands in the page happen, but the Zorg remain friendly ever after, so if I go to a Zorg star that I have already visited (on friendly terms) I do not encounter hostile Zorg, or if I go to an unexplored Zorg world, I encounter friendly Zorg.

Is there a working quest that demonstrates a successful use of ENMY?

Lexicat

clomaka
January 21st, 2008, 10:07 PM
here's the whole quest i snipped above. it relies on lf_alienfetus to work, but you can replace that with anything you want.

clomaka
January 21st, 2008, 10:09 PM
huh, it's not letting me attach:(
here it is:

FLAG always

CONDITION 0
TYPE encounter
STR0 zorg
END CONDITION

CONDITION 1
TYPE haveitem
STR0 lf_alienfetus
END CONDITION

PAGE 0
REQ0 0
REQ1 1
ACTN popup endquest
MUSC music/vidcast.ogg
GFXP races/zorg.jpg 0
TITL Zorg Vidcast
TEXT A ripple of anger passes through Zorg collective neural network, and in an uncharacteristly emotional move, they deturmine to destroy you. Too late you realize that keeping that Zorg fetus might have been a bad idea.
ENMY zorg
END PAGE

sgqwonkian
February 7th, 2008, 01:53 PM
Clomaka: The issue with the Garthans not turning friendly is probably the result of the basic mantle_gar quest. Page 1 of said quest automatically turns the garthans into enemies any time you meet them, unless you have the mantle.

Lexicat: Any chance it could be a similar issue? Do you have any other non-standard quests that make the Zorg friendly? If so, they may be triggering at preenc, and thus overriding the zorg-enemy quest. In other words, it could be something in a totally different quest that's causing your issues.