worph Posted October 17, 2014 Share Posted October 17, 2014 Script has compiled well.Property SPELL DiseaseAtaxia Auto added of course.In game message "Ataxia added" pop-up, but no active effects occured.How to add properly disease spell into script? Thanks in advance for help! Link to comment Share on other sites More sharing options...
Plastrader Posted October 17, 2014 Share Posted October 17, 2014 This is weird, because:pPlayerRef.addSpell(pDiseaseAtaxia)worksbut(as you say)Game.GetPlayer().addSpell(pDiseaseAtaxia)doesn't So until someone can explain why they differ, use "Actor Property pPlayerRef Auto"Filled with:cell:(any)Reference: PlayerRef('Player') Link to comment Share on other sites More sharing options...
worph Posted October 17, 2014 Author Share Posted October 17, 2014 I`m sorry It`s not working for me as well. Link to comment Share on other sites More sharing options...
Plastrader Posted October 17, 2014 Share Posted October 17, 2014 (edited) Ok, I'm at a loss here...It doesn't work for me NOW either!>< [10/18/2014 - 12:50:45AM] [Actor < (00000014)>]>[sPELL < (000B8782)>][10/18/2014 - 12:50:45AM] [Actor < (00000014)>]>[sPELL < (000B877C)>]---I'll have to get back to you on this matter, I'm the one who should say sorry... [edit]Ok, now both methods(game.getplayer() & playerRef) works, lets see if it works for you tooChange the disease property to the "TrapDiseaseAtaxia" Edited October 17, 2014 by Plastrader Link to comment Share on other sites More sharing options...
jonharwood Posted September 18, 2020 Share Posted September 18, 2020 Did anybody ever figure this out. I'm having the same issue. Script shown below: Scriptname OMBEncumberanceExtraEffectTrigger extends Actor SPELL PROPERTY pOMBEncumbrance AUTOACTOR PROPERTY pPlayerRef AUTO Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) if Game.GetPlayer().GetActorValue("InventoryWeight") > Game.GetPlayer().GetActorValue("CarryWeight") pPlayerRef.AddSpell(pOMBEncumbrance) Debug.MessageBox("Yup To Much ") endIf endEvent Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) if Game.GetPlayer().GetActorValue("InventoryWeight") <= Game.GetPlayer().GetActorValue("CarryWeight") pPlayerRef.removeSpell(pOMBEncumbrance) endIf endEvent Link to comment Share on other sites More sharing options...
Recommended Posts