Jump to content

Help with Custom Hirelings Spawning


Recommended Posts

Newbie poster here. Recently got into Sacred 2 modding.

After coming off Dungeon Siege 2, I decided I'd take a stab at creating a couple of followers and turn my copy of Sacred 2 into a party based dungeon crawler. 

After banging my head against the wall for a few days, I think I've got everything figured out. I managed to create a handful of henchmen creatures and even gave them some custom equipments.

After that, I've been trying to spawn my 'party members' using spells. Specifically, I'm using a modified versions of the deity spells:

mgr.defineSpell( "gott_chaos_sakkaradaemon", {
	eiStateName = "cSpellCast",
	fxTypeCast = "FX_GS_DAEMON_C",
	fxTypeSpell = "FX_GEN_SPAWN2_I",
	fxTypeCastSpecial = "FX_GS_DAEMON_C",
	duration = 10.000000,
	animType = "ANIM_TYPE_SM19",
	animTypeApproach = "ANIM_TYPE_INVALID",
	animTypeRide = "ANIM_TYPE_RIDESM01-HORSE",
	animTypeSpecial = "ANIM_TYPE_RIDESM19-SPECIAL",
	causesSpellDamage = 1,
	tokens = {
		entry0 = {"et_duration_sec", 1000, 0, 0, 8 },
		entry1 = {"et_friendfactor", 1000, 0, 0, 8 },
		entry2 = {"et_reduce_debuffs", 1000, 40, 0, 41 },
		entry3 = {"et_range_distance", 1000, 0, 0, 4 },
		entry4 = {"et_life_regen", 100, 200, 0, 41 },
		entry5 = {"et_life_heal_rel", 500, 10, 0, 9 },	
		entry6 = {"et_minion_addreg", 0, 15, 0, 8 },		
		entry7 = {"et_summon_mylevel", 10, 10, 0, 4 },			
		entry8 = {"et_summon_officer", 1000, 4000, 0, 8 },
		entry9 = {"et_summon_officer", 1000, 4001, 0, 8 },	
		entry10 = {"et_summon_officer", 1000, 4002, 0, 8 },
		entry11 = {"et_summon_officer", 1000, 4003, 0, 8 },
		entry12 = {"et_minion_replenish", 1000, 25, 0, 72 },	
		entry13 = {"et_minion_armor_all", 75, 55, 0, 72 },		
		entry14 = {"et_summon_armor", 75, 55, 0, 72 },		
	},
	fightDistance = 0.000000,
	aspect = "EA_GOD_ANY",
	cooldown = 30.000000,
	soundProfile = 0,
	cost_level = 0,
	cost_base = 0,
	focus_skill_name = "skill_devotion",
	lore_skill_name = "skill_devotion",
	spellClass = "cSpellSpawnEnemy",
	spellcontroltype = "eCAtype_a_effect_self",
	sorting_rank = 0,
})

The problem that I'm running into is with spellClass = "cSpellSpawnEnemy". As far as I can tell, this is the only way for a single spell to spawn multiple different creatures at once (I've tried other spellClass values with no luck). Unfortunately, while it can work some times, the spell completely stops working as soon as you have another creature following you - doppelganger, subjugated spirit, or even just random NPC escort you accidentally picked up in a quest.

Thus far, I've found no workaround - the spell will only work if there's absolutely no one else following my character.

So I was wondering if any of the more experienced modders on this forum know of a solution to this issue. 

Thanks!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
Please Sign In or Sign Up