Author Topic: How do I make intelligent clerics, druids, wizards and any pure spellcasting or semi-spellcasting class?  (Read 2306 times)

Legacy_Renton007

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0


               I already know how to make these classes in toolset as hostile enemies. Right now I'm trying to make a cleric that intelligently casts all protective spells at the very beginning of the battle, and then fight the player or cast more offensive spells. But he doesn't. He casts Protection from Elements and then fights the Player by melee even though he has more offensive and defensive spells to cast. How does one fix this?
Oh, and how do you do the same thing without the melee with a sorcerer or wizard?
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0


               There is a switch for Fast Buff which you use then give him speels you WANT him to cast. There is a few other methods as well.



Way back in the day I did look at this but it has been awhile maybe it will help you too.



http://nwvault.ign.c....Detail&id=1071
               
               

               
            

Legacy_Renton007

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0


               I installed the script and now my cleric doesn't even cast spells at all.
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0


               Did you just plug it in or did you actually follow the directions? There is numerous AIs on the Vault you can look through. The talent FAST BUFF is not a spell per say. What it does is just as it sounds, when triggered by perceiving a hostile enemy at a default of 40 m away it auto buffs itself.



This then allows you to set up spells to use. Not trying t confuse so much as say you need to delve into th script a bit better or even look through one of the AI Packages on the Vault like say...Tonk Ks or Jasperres or some sorts.



I truthfully like using one of my own as then i can scale it to my needs. Yet if you do not have the time nor inclnation to do that then search out both those systems. I did not mean for you to install the script so much as read how it was done. If your just looking to install something then the aforementioned packages would help you better.
               
               

               
            

Legacy_Renton007

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0


               Well, I don't know how to do any of those things. All I knew how to do was load the .erf into the module. I couldn't do anything else because the website with the instructions on how to properly install it is gone.
I typed Tonk Ks and got a gambling script only. I got no result for Jasperres.
               
               

               


                     Modifié par Renton007, 05 août 2010 - 04:58 .
                     
                  


            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0


               http://nwvault.ign.c....Detail&id=3675

http://nwvault.ign.c...d=15260&id=1600

http://nwvault.ign.c...d=15260&id=2316
               
               

               
            

Legacy_Renton007

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0


               Hey, thanks alot TSMDude. Jasperre's Ai worked well, and it was easy to install and configure. My cleric is now casting spells, but my fighter keeps on interrupting them. I think I'll have to make her harder.

Is there any advice you can give me that can balance the spells out? Because I put 4 points into Hammer of the Gods, 1 point each for Darkfire and Protection from Elements, three points for Inflict Serious Wounds, and 5 points in Inflict Moderate Wounds. She's only casting the Inflict Wound spells though. What can I do to make her buff with Ptection from Elements and Darkfire first?
               
               

               
            

Legacy_ChaosInTwilight

  • Full Member
  • ***
  • Posts: 126
  • Karma: +0/-0


               You can't make a good intelligent cleric.  You have to make a Wise cleric.    Duh.

I jest.

Jasp's has a switch in the script so that you can turn on/off an unlimited amount of low level spells. I.E. "Unlimited Magic Missile Mages" 

You probably have this on without meaning to.  If its on, its probably i the critters OnSpawn Event somewhere.
               
               

               
            

Legacy_Renton007

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0


               I found Flag_Fast_Buff_Enemy which allows the hostile to cast protective spells first. How do I turn this on and off?

This is the code in the script.
//SetSpawnInCondition(AI_FLAG_COMBAT_FLAG_FAST_BUFF_ENEMY, AI_COMBAT_MASTER);
        // When an enemy comes in 40M, we fast-cast many defensive spells, as if prepared.
               
               

               


                     Modifié par Renton007, 05 août 2010 - 08:49 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0


               This is not normal. I know lot of guys had this issue but not me...



Do your cleric have combat casting?
               
               

               
            

Legacy_Renton007

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0


               No, Shadow. She has Weapon Focus (Mace) though.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0


               Since you installed jasperr AI it does not matter anymore, but I think it could be because of that feat missing.
               
               

               
            

Legacy_Renton007

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0


               You're right Chaos, the unlimited level 1 spell is turned on, but I can't find it in the script. Oh and I had a previous question about the automatic buffing code in the same script. I posted the code above.

My wizards and clerics only cast offensive spells now. They don't use their protective spells at all too.
               
               

               


                     Modifié par Renton007, 05 août 2010 - 09:27 .
                     
                  


            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0


               

Renton007 wrote...

I found Flag_Fast_Buff_Enemy which allows the hostile to cast protective spells first. How do I turn this on and off?

This is the code in the script.
//SetSpawnInCondition(AI_FLAG_COMBAT_FLAG_FAST_BUFF_ENEMY, AI_COMBAT_MASTER);
        // When an enemy comes in 40M, we fast-cast many defensive spells, as if prepared.



//SetSpawnInCondition(AI_FLAG_COMBAT_FLAG_FAST_BUFF_ENEMY, AI_COMBAT_MASTER);

Those forward slashes? Remove them.
So it looks like this.

SetSpawnInCondition(AI_FLAG_COMBAT_FLAG_FAST_BUFF_ENEMY, AI_COMBAT_MASTER);

Also in Jasp if I remember correctly you can toggle them to be Spellcaster vs Fighter. Honestly would remove the Weapon Focus as this will make them switch to the weapon anyhow. The game does a natural progression between what it sees as "better" to worse. Another way to do it is to NOT give the spellcasters any missle weapons BUT toggle them as archers or what not and then they will stand back or try and get away to lob spells instead of closing for combat.
               
               

               


                     Modifié par TSMDude, 05 août 2010 - 09:35 .
                     
                  


            

Legacy_Renton007

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0


               Okay, I'm trying a wizard now. Now, when she spawns her two buffs are already casted, but she just stands there and does nothing now, and when I engage her she casts low level spells and ignores AoE spells.
I turned thess on as well:

// For these 2, if neither are set, the AI will choose AOE more if there are
// lots of enemies, or singles if there are not many.
SetSpawnInCondition(AI_FLAG_COMBAT_SINGLE_TARGETING, AI_COMBAT_MASTER);
// For Same-level spells, single target spells are used first.
SetSpawnInCondition(AI_FLAG_COMBAT_MANY_TARGETING, AI_COMBAT_MASTER);
// For Same-level spells, AOE spells are used first.

I even tried the same thing with my cleric, minus the two activiations I just listed here in a brand new test module. Her protective spells were there, but she stood there and did nothing. I hacked away at her for five seconds and then she finally casts spells at me, just like my wizard. And all I did this time was use the pre-buff protective spells activation which you showed me how to activate earlier. I have no idea what's wrong.
               
               

               


                     Modifié par Renton007, 05 août 2010 - 11:32 .