Aller au contenu

Photo

Variable Constants


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

#1
Morbane

Morbane
  • Members
  • 1 883 messages
 Is there a list somewhere of Variable Constants? Like the X2_INCORPOREAL that makes creatures 50% consealed - things like that. 

To be more specific is there a Constant to prevent Creatures from responding to the "help" call when a Creature is attacked?

Thanks for any input.

#2
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages
Not that I know of. Look at the standard spawn script.

#3
kamal_

kamal_
  • Members
  • 5 260 messages
Is "variable constants" like "honest politicians" or "easy to beat up Navy SEALS"?

Factions would do what you want.

#4
MasterChanger

MasterChanger
  • Members
  • 686 messages

kamal_ wrote...

Is "variable constants" like "honest politicians" or "easy to beat up Navy SEALS"?

Factions would do what you want.


Ha ha, exactly. Technically these are just "constants" not "variable constants," because once declared and set, they can never be set to something else. They're just short-hand, as in Area = π * radius^2.

Factions would definitely be one good way. The faction relationships do not need to be exactly reciprocal: faction A can come to faction B's defense, but the inverse does not need to be true.

Now, if both factions start out hostile to the Player faction, they might both attack anyway; there's some weird stuff I've noticed where one enemy will piggy-back on another's perception (they might have to be the same faction for that, I'm not sure). This might be related to a perception shout.

Speaking of shouts, that's generally how it works when one creature responds when other is attacked. There's some sort of *_I_WAS_ATTACKED shout that creatures listen for (using SetListenPattern) in the AI.

As far as the constants themselves, I'm pretty sure someone put together a massive #include at some point that would allow you to search everything in ScriptAssist at once. Presumably, this would make it easy to find the constants you were looking for.

#5
Morbane

Morbane
  • Members
  • 1 883 messages
Ok - it was really late when I posted this. I was just looking for a short cut to avoid scripting every placed creature to be Neutral then have them go Hostile when the timing was right. I have been using Encounters pretty successfully but - I thought it might be worth asking about Constants. The Variable was supposed to indicate the "Variable" parameter in a creatures Script Properties. 

Oh well...

Modifié par Morbane, 08 mai 2011 - 09:07 .