Monster Generators and the Alphabet

Discussion in 'Modding and Scripting Support' started by TONGSyaBASS, Oct 6, 2005.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. TONGSyaBASS

    TONGSyaBASS Member

    Messages:
    772
    Likes Received:
    0
    Joined:
    Apr 19, 2005
    When I need a character/s to appear when a condition has been met I use a monster generator. I attach the script "toggle generator on/off" to the first heartbeat of another critter. In this way the generator can be turned off before it produces a single spawn...in theory.
    However in practice, sometimes it works and sometimes it doesn't. The other day it came to me that the critters name had an effect on this. If the critter's name is before the critter being generated in the alphabet, it works. If not, it doesn't.
    Example: A halfling bandit will turn off a halfling guard generator.
    A halfling villager will not turn off a halfling guard generator (until it is too late).
    However this does not seem to work between different menus. Brute fang (animal) does not turn off a halfling guard.
    Can anyone explain this?
     
  2. DarkUnderlord

    DarkUnderlord Administrator Staff Member

    Messages:
    4,315
    Likes Received:
    5
    Joined:
    Nov 10, 2001
    If you just want the one character to appear, why not create the NPC then turn that individual NPC off. Then turn that NPC on when the condition is met?

    It just sounds like you're using a generator to do something it wasn't designed for, hence the bugs.
     
  3. Blinky969

    Blinky969 Active Member

    Messages:
    4,132
    Likes Received:
    0
    Joined:
    Jul 8, 2003
    Sounds like it's an issue of how long it takes the generator to scan from one name to the next. Animal is quite far from Halfling. The order is unimportant, it's the distance.
     
  4. TONGSyaBASS

    TONGSyaBASS Member

    Messages:
    772
    Likes Received:
    0
    Joined:
    Apr 19, 2005
    After having a more thorough look I have come to that time honoured arcanum conclusion: It just doesn't make sense.

    I've tried to reproduce it, with the exact same scripts but this time I am getting different results. Gah! The alphabet theory and the proximity theory (Blinky) both seem to apply sometimes but not other times.

    DU, I know from my description it appears I am using the generator when I don't need to, but the situation is more complicated than I could be bothered explaining.

    {3}{I'm going to focus on dirt!
    -Leonard}
     
Our Host!