Spinner385 Posted July 19, 2012 Share Posted July 19, 2012 Having serious issue with GetNthEffectMagnitude(0) I want to rename potions with their magnitude. This is the very early form of the script and it is applied to the player. Scriptname PotionRenamer extends Actor Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) Debug.MessageBox("Added (" + aiItemCount + ") " + akBaseItem.getname()) float mag = akBaseItem.GetNthEffectMagnitude(0) akBaseItem.setname(akBaseItem.getname() + " " + mag) endevent I tried several different things with it but I'm starting to think I can't use it this way. It seems I need to use it like this from the website: float mag = Potion.GetNthEffectMagnitude(0) Then how do I point it to akBaseItem? Link to comment Share on other sites More sharing options...
Recommended Posts