Difference between revisions of "User:PROXiCiDE/AddItemsToPlayerFromForm"

Jump to navigation Jump to search
m
no edit summary
imported>PROXiCiDE
(Created page with " == Syntax == <source lang="papyrus"> Function AddItemsToPlayerFromForm(FormList pList, Bool bRemove = False) </source> == Parameters == *pList: The form list containing Spe...")
 
imported>PROXiCiDE
m
Line 1: Line 1:
 
==Overview==
AddItemsToPlayerFromForm() is useful for Debugging


== Syntax ==
== Syntax ==
Line 45: Line 46:
Else
Else
pPlayer.AddSpell(pSpell)
pPlayer.AddSpell(pSpell)
EndIf
ElseIf (fmItem As Potion) || (fmItem As Scroll) || (fmItem As SoulGem)
If bRemove
pPlayer.RemoveItem(fmItem, 5)
Else
pPlayer.AddItem(fmItem, 5)
EndIf
EndIf
ElseIf fmItem As Ammo
ElseIf fmItem As Ammo
Line 64: Line 71:
If !bRemove
If !bRemove
pPlayer.EquipItem(pAmmo)
If pAmmo != None
pPlayer.EquipItem(pWeapon)
pPlayer.EquipItem(pAmmo)
EndIf
If pWeapon != None
pPlayer.EquipItem(pWeapon)
EndIf
If pSpell != None
pPlayer.EquipSpell(pSpell,1)
EndIf
EndIf
EndIf
EndFunction
EndFunction
</source>
</source>
Anonymous user

Navigation menu