How do spellcasting MOBs choose spells

For builders to discuss and ask building questions.
Post Reply
Stayne
Sword Journeyman
Sword Journeyman
Posts: 137
Joined: Sun Aug 10, 2003 12:01 pm
Location: Zhentil Keep

How do spellcasting MOBs choose spells

Post by Stayne » Tue Apr 27, 2004 4:14 pm

Hi all -

How do I control what spells a magic using MOB casts in battle? Do they just randomly choose spells from the guild you make them? Do I need to use fight progs? Can I program them to target certain people rather than just the one who attacks? Or to use area spells against a group and individual spells against a lone person? Different spells VS warriors and different spells VS mages etc...

Thanks in advance
-S
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Post by Dalvyn » Tue Apr 27, 2004 6:09 pm

If your mob does not have any fight_prog, it will fight using the normal skills for a mob of its class. For spellcasters though, that means that they will cast spells only from time to time, that is, next to never in comparison with a PC spellcaster.

If you want to have more control on the fight procedure, you have to add a fight_prog specifying exactly what the mob is going to do. In such a program, you can have the mob react differently according to its opponent's class, you can have it cast specific spells, and/or target other people than their main opponent.
Image
Stayne
Sword Journeyman
Sword Journeyman
Posts: 137
Joined: Sun Aug 10, 2003 12:01 pm
Location: Zhentil Keep

Post by Stayne » Wed Apr 28, 2004 1:42 am

Dalvyn wrote:If your mob does not have any fight_prog, it will fight using the normal skills for a mob of its class. For spellcasters though, that means that they will cast spells only from time to time, that is, next to never in comparison with a PC spellcaster.

If you want to have more control on the fight procedure, you have to add a fight_prog specifying exactly what the mob is going to do. In such a program, you can have the mob react differently according to its opponent's class, you can have it cast specific spells, and/or target other people than their main opponent.
Has anyone written any large yet easily modifiable fight programs "per class"? (ie A generic prog that we can use to simulate some type of intelligence)

Please post here if so.
Thanks
-S
Post Reply