.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=130)
-   -   Unanswered question: making friendly races un? (http://forum.shrapnelgames.com/showthread.php?t=36594)

lexicat October 26th, 2007 08:45 PM

Unanswered question: making friendly races un?
 
Hi There,

I have a quest in which I would like to make a formerly friendly race, let's use the Zorg as an example, turn hostile.

The line:
ENMY Zorg

appears in my quest (along with various other good and awful things).

Everything works except that the Zorg do not actually become hostile after the quest has been triggered. Any advice on how I am supposed to accomplish this? Is preenc supposed to be employed somehow?

Thanks much,
Lexicat

Phlagm October 27th, 2007 11:31 AM

Re: Unanswered question: making friendly races un?
 
I don't think the preenc has to be used necessarily, only when you're trying to make them enemies right before you encounter them. I have encountered many problems with getting races to change friend and enemy status, and I haven't quite worked out why.

But you say that other things in that quest block are being evaluated?

Here's what problem I once had: preenc flat wouldn't work on the corrupted tan ru quest, so I had to make it an encounter. So you'd end up fighting the tan ru and THEN they'd become friendly. It's quite annoying.

lexicat October 27th, 2007 01:05 PM

Re: Unanswered question: making friendly races un?
 
Phlagm,

Yup, all the other aspects of my quest seem to work: i just can't seem to make (all) members of a friendly race, turn hostile.

Lexicat

sgqwonkian October 29th, 2007 01:31 PM

Re: Unanswered question: making friendly races un?
 
Are you just changing the status of one race, or more? I ask because I recently discovered that certain commands only work once per PAGE. It's not documented anywhere in the ModMaker's Guide, so it took a lot of frustrating debugging to figure out what the problem was in one of my mods. Not sure if ENMY is one of the codes this applies to, but it's a possibility. If it is, spreading the commands to multiple pages with GOTO's will solve that issue.

Also, certain PAGE codes seem to work in Quests but not in Devices, and vice-versa.

Phlagm October 29th, 2007 01:41 PM

Re: Unanswered question: making friendly races un?
 
Oh yeah, I actually figured that out too. Like it'll only take the last one.

sgqwonkian October 29th, 2007 01:45 PM

Re: Unanswered question: making friendly races un?
 
We should compare notes sometime. I bet we've been banging our heads against a lot the same walls.

Phlagm October 29th, 2007 01:52 PM

Re: Unanswered question: making friendly races un?
 
It's funny. Other than this and one other minor problem about the order certain things display, I just wrote an in-depth quest very very carefully, and miraculously it pretty much worked.

I tried that with my Tan Ru quest, and then I went back and tried again doing it one PAGE at-a-time, and testing it thoroughly, but still I ran into insurmountable problems in both instances.

I'm going to try that one again, though. I'm just sick of wrestling with it...and I'm also disheartened because there was so much I wanted to do with it, but so much of it can't be done, so the quest I'm ending up with is a weak blending of the Kawangi and Ravian quests. I am going back to formula.

lexicat October 29th, 2007 05:53 PM

Re: Unanswered question: making friendly races un?
 
Quote:

sgqwonkian said:
Are you just changing the status of one race, or more?

Just trying to make a single race become hostile. ENMY does not seem to do it.

Fingers November 5th, 2007 10:55 PM

Re: Unanswered question: making friendly races un?
 
How are you triggering the page that should make them hostile? I think the "encounter" is never triggered with known friendlies, as that's part of the sequence with the radar screen... And the radar doesn't come up when you go to a star occupied by known friendlies. "preenc" should always get triggered however.

lexicat November 6th, 2007 12:42 PM

Re: Unanswered question: making friendly races un?
 
Hi there,

Oh, I am not trying to make a friendly race unfriendly during an encounter, I am trying (and failing) to make that race (wherever encountered), hostile afterward in future encounters. To make up an example, a quest involves the player straying unto and accidentally defiling the sacred Zorg burial planet. Thereafter, the Zorg are hostile to the player. (until and unless they are made friendly through some other quest or item, like an encounter while accompanied by a Zorg escort, or using the Mantle of Babulon)

So:
Player visits planet and triggers quest
Arbitrary race's stance is set to hostile (i.e. future encounters will be hostile)
Profit! (ha ha)

Except that "ENMY zorg" doesn't seem to do this. How do I do this?

Thanks for checking in, Fingers!

Lexicat

lexicat November 15th, 2007 05:30 PM

Re: Unanswered question: making friendly races un?
 
Hey!

I still want to know how to make a race (for example, Zorg) hostile in future encounters!

ENMY zorg

does not do it!

Lexicat

sgqwonkian November 15th, 2007 06:46 PM

Re: Unanswered question: making friendly races un?
 
Quote:

lexicat said:ENMY zorg

does not do it!

Weird. I know I've had it work just fine in a mod I've been working on, so I imagine your problem lies somewhere else in the code of the quest file where you give that command. Double -check your CONDITIONS, I'd guess.

It doesn't set 2 or more races hostile at once, does it? As has been discussed much here of late, sometimes a duplicate command code only activates on the last instance.

mantari November 15th, 2007 10:22 PM

Re: Unanswered question: making friendly races un?
 
If you want another set of eyes, I'd be happy to look at your code.
(To either confirm a bug in the game, or to find something you may have overlooked.)

lexicat November 16th, 2007 12:29 PM

Re: Unanswered question: making friendly races un?
 
Naw, Phlagm, the conditions are not the problem: all the other commands in the PAGE with "ENMY zorg" work fine. The Zorg just happen to remain happily my friends ever after.

Is there a limit to the number of commands, or an ordering issue with commands in a PAGE?

Lexicat

Phlagm November 16th, 2007 09:36 PM

Re: Unanswered question: making friendly races un?
 
One thing I've noticed is that if you have this occur in certain types of PAGEs, especially those that are called by a YSNO or a GOTO, many of the commands just won't run. It's what I discovered when things were looking completely illogical. Is that the case here?

lexicat November 16th, 2007 11:08 PM

Re: Unanswered question: making friendly races un?
 
No. Just a plain old PAGE page, with 3 or 4 conditions. But, as I say: the other commands in the PAGE, work.

Lexicat.

mantari November 17th, 2007 12:27 AM

Re: Unanswered question: making friendly races un?
 
I'd really love the opportunity to troubleshoot that code.


All times are GMT -4. The time now is 06:49 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.