Jump to content

Problems making a spell into a buff


Recommended Posts

I've been trying to turn Frenetic Fervor into a permanent buff, largely since I want to see how it's done before I attempt anything more radical. I can have it selectable on the buff bar (though with no icon, which is expected anyway), and I can activate it from there. My problem is that it deactivates itself when the duration would expire anyway. Commented script below, and any suggestions welcome :

 

mgr.defineSpell( "in_in_eifer", {
eiStateName = "cSpellCast",
fxTypeCast = "FX_INQ_EIFER_C",
fxTypeSpell = "FX_INQ_EIFER",
fxTypeCastSpecial = "FX_INQ_CAST_K",
duration = 10.000000,
animType = "ANIM_TYPE_SM05",
animTypeApproach = "ANIM_TYPE_INVALID",
animTypeRide = "ANIM_TYPE_INVALID",
animTypeSpecial = "ANIM_TYPE_RIDESM04-SPECIAL",
causesSpellDamage = 0,
tokens = {
	-- entry0 = {"et_duration_sec", 14850, 15, 0, 8 }, -- commented out
	entry0 = {"et_addWeaponspeed", 995, 5, 0, 37 },
	entry1 = {"et_attackspeed_limit", 300, 0, 0, 37 },
	entry2 = {"et_addCastspeed", 495, 5, 1, 37 },
	entry3 = {"et_addWeaponspeed", 148, 2, 2, 37 },
	entry4 = {"et_chance_evade", 198, 2, 3, 41 },
	entry5 = {"et_AWboost_rel", 400, 100, 4, 41 },
	entry6 = {"et_chance_evade", 15, 5, 5, 41 }, -- changed from duration boost
	entry7 = {"et_addwalkspeed", 295, 5, 6, 41 },
},
fightDistance = 0.000000,
aspect = "EA_IN_INQUISITION",
cooldown = 0.000000, -- removed
soundProfile = 0,
cost_level = 5,
cost_base = 10,
focus_skill_name = "skill_IN_inquisition_focus",
lore_skill_name = "skill_tactics_lore",
spellClass = "cSpellInqEifer",
spellcontroltype = "eCAtype_t_buff",  -- changed
sorting_rank = 4,
})

Link to comment

Are you sure that you commented it out the right way?

Is the effect still there if you just delete the line? Sorry, can't test myself as long my daughter has the play machine in hospital.

 

It reads as if the game doesn't get the message that the duration line is commented out. I got you right that it terminates after around 2 and a half minutes?

Link to comment

If you are sure the buff ended out of itself and you did not get "debuffed" by an enemy, then you could try setting:

 

	spellClass = "cSpellGenericBuff",

 

because the spellclass could have some timer itself. It controls most of the spells effects anyway, so you might want to check if all your boni stay the same after changing this. cSpellGenericBuff might not be able to handle and understand all of them.

Edited by czevak
Link to comment

Thanks for the help all. I've tried it with the line deleted entire, same effect, put it back with the comment to remind me, and facilitate a quick restore.

 

Will try the different class when I get home this afternoon and report back - thanks for the tip!

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