xzax Posted December 1, 2013 Share Posted December 1, 2013 Try to make attack spell cost player stamina not mana.I made spell MuffleStamina for damage staminaI Made scrip---------------------------------------------------------------------------------Scriptname _applyStaminaDamage extends activemagiceffect Actor Property Player AutoSPELL Property MuffleStamina AutoEvent OnEffectStart (Actor akTarget, Actor akCaster) Player = Game.GetPlayer() MuffleStamina.Cast(Player) EndEvent-------------------------------------------------------------------------------------and add it to my attack magic effectand no effect in game....I made some thing wrong ??... Please help...!!! Link to comment Share on other sites More sharing options...
blacksupernova Posted December 1, 2013 Share Posted December 1, 2013 Yes it should be If akcaster == game.getplayer()Spell.cast(akcaster)Endif You can assign Player to akcaster if the condition is met but that would be redundant Link to comment Share on other sites More sharing options...
xzax Posted December 1, 2013 Author Share Posted December 1, 2013 Thank youIt Works Perfect..!!! :laugh: Link to comment Share on other sites More sharing options...
Recommended Posts