Jump to content

Game.GetPlayer().AddSpell(DiseaseAtaxia) not working


worph

Recommended Posts

This is weird, because:

pPlayerRef.addSpell(pDiseaseAtaxia)

works

but(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

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 too

Change the disease property to the "TrapDiseaseAtaxia"

Edited by Plastrader
Link to comment
Share on other sites

  • 5 years later...

Did anybody ever figure this out. I'm having the same issue. Script shown below:

 

Scriptname OMBEncumberanceExtraEffectTrigger extends Actor
SPELL PROPERTY pOMBEncumbrance AUTO
ACTOR 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...