Jump to content


Photo

Totemic Druid Spirit Animal in an AI Script.


  • Please log in to reply
2 replies to this topic

#1 Eldriyn

Eldriyn
  • Member
  • 2 posts

Posted 09 July 2017 - 06:46 PM

Hello. I was not sure where to put this so I'll just drop it here.

 

 

I currently have this which works fine:

 

IF
	ActionListEmpty()
	See(NearestEnemyOf(Myself))
	HaveSpell(TOTEMIC_DRUID_SUMMON_SPIRIT_ANIMAL)  // SPCL621.SPL (Summon Spirit Animal)
	HPGT(NearestEnemyOf(Myself),1)
THEN
	RESPONSE #100
		Spell(NearestEnemyOf(Myself),TOTEMIC_DRUID_SUMMON_SPIRIT_ANIMAL)  // SPCL621.SPL (Summon Spirit Animal)
END

 

However, the part that I can't figure out is the "Choose Wolf, Snake, Bear or Lion" and cast it when the top script triggers.  A spell selection tray comes up when the top part is cast and what I am trying to figure out is how do you select from that tray with the same script to cast whatever animal you want?

 

 

In this example I just want to cast a wolf which is SPCL625 but it doesn't work at all. It does work with ForceSpell but I don't want to cheat with this.



#2 Miloch

Miloch

    Barbarian

  • Modder
  • 6494 posts

Posted 10 July 2017 - 05:56 AM

In BG2, this spell uses spirsumm.2da to call one of four animals (that you mention). So that probably wouldn't work so well in a script. You're better off just mimicking the spell and creating the wolf (spirwolf.cre). If you want it to be more realistic, you could clone the spell and keep everything the same except just summon the wolf instead of calling spirsumm.eff. Then use HaveSpellRES and SpellRES to call it.


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"My definition of an intellectual is someone who can listen to the William Tell Overture without thinking of the Lone Ranger." -Billy Connolly


#3 Eldriyn

Eldriyn
  • Member
  • 2 posts

Posted 10 July 2017 - 08:47 AM

In BG2, this spell uses spirsumm.2da to call one of four animals (that you mention). So that probably wouldn't work so well in a script. You're better off just mimicking the spell and creating the wolf (spirwolf.cre). If you want it to be more realistic, you could clone the spell and keep everything the same except just summon the wolf instead of calling spirsumm.eff. Then use HaveSpellRES and SpellRES to call it.

 

 

Yeah I just re-created the Summon Spirit Animal to summon 5 different levels of Spirit Wolf using Summon Creature effect. Works good. Thanks for the help.  If anybody wants to try it just put this file in your override and use my script above. Pretty awesome for soloing BG1 without having to click so much.  Can easily power level off sirens with these wolves. :P

Attached Files


Edited by Eldriyn, 10 July 2017 - 08:51 AM.