FormList Property ItemList AutoInt iIndex = Utility.RandomInt(0, (ItemList.GetSize() - 1))ObjectReference Reference = ItemList.GetAt(iIndex) as ObjectReference(Game.GetPlayer()).AddItem(Reference, GemCount)
FormList Property ItemList AutoInt iIndex = Utility.RandomInt(0, (ItemList.GetSize() - 1))ObjectReference Reference = ItemList.GetAt(iIndex) as ObjectReference(Game.GetPlayer()).AddItem(Reference, GemCount)
Int iGemCountFormList Property ItemList Auto... Game.GetPlayer().AddItem(ItemList.GetAt(Utility.RandomInt(0, (ItemList.GetSize() - 1))), iGemCount)...
Game.GetPlayer().AddItem(ItemList.GetAt(Utility.RandomInt(0, (ItemList.GetSize() - 1))), GemCount)
[07/01/2012 - 09:04:26PM] error: Cannot call GetSize() on a None object, aborting function call[07/01/2012 - 09:04:26PM] error: Cannot call GetAt() on a None object, aborting function callAny idea why?
[07/01/2012 - 10:02:43PM] error: Cannot call GetSize() on a None object, aborting function callstack:[ (0010EDBF)].MineOreScript.giveOre() - "MineOreScript.psc" Line 207[ (0010EDBF)].MineOreScript.OnActivate() - "MineOreScript.psc" Line 97[07/01/2012 - 10:02:43PM] warning: Assigning None to a non-object variable named "::temp26"stack:[ (0010EDBF)].MineOreScript.giveOre() - "MineOreScript.psc" Line 207[ (0010EDBF)].MineOreScript.OnActivate() - "MineOreScript.psc" Line 97[07/01/2012 - 10:02:43PM] error: Cannot call GetAt() on a None object, aborting function callstack:[ (0010EDBF)].MineOreScript.giveOre() - "MineOreScript.psc" Line 208[ (0010EDBF)].MineOreScript.OnActivate() - "MineOreScript.psc" Line 97[07/01/2012 - 10:02:43PM] error: Cannot add None to a containerstack:[ (00000014)].Actor.AddItem() - "" Line ?[ (0010EDBF)].MineOreScript.giveOre() - "MineOreScript.psc" Line 210[ (0010EDBF)].MineOreScript.OnActivate() - "MineOreScript.psc" Line 97
[07/01/2012 - 10:02:43PM] error: Cannot call GetAt() on a None object, aborting function callYour FormList property has no value.
[07/01/2012 - 10:02:43PM] error: Cannot call GetAt() on a None object, aborting function callYour FormList property has no value.
Actor Property PlayerREF Auto...and attach that script to a MISC items. In the MISC item's Scripts > Properties, the property value must be filled either manually or via auto-filling or PlayerREF == None. PlayerREF property, attached to a different script, could be pointed to MaiqTheLiarREF. Simply matching the desired target's EditorID will make it autofill with the desired form, but it'll not have a value until filled.