Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
632 B
24 lines
632 B
Scriptname Tsc_ThrowingWeapons_AmmoScript extends activemagiceffect
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
mySelf = akTarget
|
|
endEvent
|
|
|
|
Event OnDying(Actor akKiller)
|
|
int size = dummyList.GetSize()
|
|
int numItems = mySelf.GetItemCount(dummyList)
|
|
if (numItems > 0)
|
|
While (size > 0)
|
|
size -= 1
|
|
numItems = mySelf.GetItemCount(dummyList.GetAt(size))
|
|
if (numItems > 0)
|
|
mySelf.AddItem(ScrollList.GetAt(size), numItems, true)
|
|
mySelf.RemoveItem(dummyList.GetAt(size), numItems, true)
|
|
endIf
|
|
endWhile
|
|
endIf
|
|
endEvent
|
|
|
|
Actor mySelf
|
|
FormList Property ScrollList Auto
|
|
FormList Property dummyList Auto |