View Full Version: Making named baddies spawn

ivan >>Programming >>Making named baddies spawn


<< Prev | Next >>

Freelance Bezerker- 07-06-2006
Making named baddies spawn
Hello all, I've been fooling around with the code lately, doing very simple things like increasing the spawn rate. I tried the following last night, and can't figure out why it crashes the game. I take a snippet of code from the first dungeon, such as: Square, Random; { Character = kobold; Times = 2; } and change it to Square, Random; { Character = goblin; Times = 2; } which seems to work fine. But then when I try something like Square, Random; { Character = Guugzamesh (or any other named baddie); Times = 2; } I get an error saying the game has crashed due to a "terminator." I'm just trying to get certain named baddies to spawn on certain levels cause I'm tired of waiting around for them to show up.

dalboz- 07-06-2006

you need to change the code for the named baddies as well. Or else... the Terminator will terminate you! it dosen't matter how many times you delete it... IT'll BE BACK! :twisted: heh, just joking.

Freelance Berzerker- 07-06-2006

Dalboz, Thanks for the tip. But could you be more specific about how I should change the code for the named baddies? Other than erasing their definition as "unique?" Also, it is possible to code Lobs-se in the current version?

dalboz- 07-07-2006

find the line IsUnique = true; for Guuz and change it to IsUnique = false;

Z- 07-07-2006

You should look into the char.dat file, and see the monster class name and configuration name for the given monster. Then write "classname(CONFIGNAME)" instead of kobold. For example, Guugzamesh is from goblin class and he has Config KING, so you write goblin(KING).

dalboz- 07-08-2006

I wonder what mine does... :?:

SquashMonster- 07-08-2006

IsUnique only effects when characters spawn naturally. You can make a unique baddie spawn as many times as you want by the manual placement method you've been fiddling with, but the random spawner that most enemies are created with will only do each unique once. So the reason it wasn't working wasn't IsUnique, and Z's right: named enemies aren't known by their names in the dat files, but rather by classname(CONFIGNAME).

Freelance Bezerker- 07-10-2006

Thanks, guys. I got it solved and now have Xinrochs popping up regularly on the first level. Naturally my beginning characters get slaughtered all the time by this skele-warlord, so I'm gonna move him further down. I'm thinking about creating a "zoo" level where each of the named baddies is bricked in. The character will be able to break them out at his leisure and kill them. I've toyed with the idea of using named baddies as shopkeepers for additional shops I'd like to add to the mix. Don't know if this will work.

dalboz- 07-11-2006

Sherarax the shopkeeper says: "what a fine corpse of Sherarax the mistress queen"

chaostrom- 07-12-2006

I'm thinking about creating a "zoo" level where each of the named baddies is bricked in. The character will be able to break them out at his leisure and kill them. This reminds me of Atomic's mansion level. Wasn't there going to be a zoo in it somewhere? I've toyed with the idea of using named baddies as shopkeepers for additional shops I'd like to add to the mix. Don't know if this will work. I like that :P A secret level with nothing but shops, each owned by a named baddie. Instead of a slave to buy, Ron's shop will have a kobold to buy, Raxy's shop a mistress, and Izzy's shop can have a dark mage, etc etc :P

dalboz- 07-12-2006

Instead of a slave to buy, Ron's shop will have a kobold to buy, Raxy's shop a mistress, and Izzy's shop can have a dark mage, etc etc nice idea!

Freelance Bezerker- 07-13-2006

How about everyone whose modded a level post the code to this thread, and the rest of us can have fun trying it out?

blob- 07-13-2006

No one has modded a level yet. Squashy tried but i dont think he ever finished something playable.

Freelance Bezerker- 07-13-2006

What about atomic's mansion? Is the code for that available? Right now I'm having fun killing armies of Guugamesh's. I turning Spider silk golems and Ischadirth back to unique cuz' they're such a pain to take down. I'm gonna' see later if I can add Lobs-se back to the mix.

chaostrom- 07-14-2006

Oh no, Atomic's mansion level was just an idea of his. ***Coming soon, 2050***

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.