Difference between revisions of "Talk:ShowGiftMenu - Actor"

Jump to navigation Jump to search
190 bytes removed ,  03:19, 28 June 2012
no edit summary
imported>Sollar
(Created page with " == Script to Show Gift Window and Track Items Given == This is used for the Player to feed his animal companion. The FormList is created in the CK and includes all the food...")
 
imported>Sollar
 
Line 1: Line 1:


== Script to Show Gift Window and Track Items Given ==
== Script to Show Gift Window and Identify Items Given ==


This is used for the Player to feed his animal companion.  The FormList is created in the CK and includes all the food (Potion & Ingredient) items I want to consider food for the animal.
This is used for the Player to feed his animal companion.  The FormList is created in the CK and includes all the food (Potion & Ingredient) items I want to consider food for the animal.
Line 9: Line 9:


Function FeedCompanion()
Function FeedCompanion()
ObjectReference foodItem = None
AddInventoryEventFilter(FoodList)
int indexPos = FoodList.GetSize()
ShowGiftMenu(True, FoodList, False, False)
While(indexPos > 0)
RemoveAllInventoryEventFilters()
indexPos -= 1
foodItem = FoodList.GetAt(indexPos) as ObjectReference
AddInventoryEventFilter(foodItem)
EndWhile
Self.ShowGiftMenu(true, FoodList, false, False)
Self.RemoveAllInventoryEventFilters()
EndFunction
EndFunction


Line 23: Line 17:
If akSourceContainer == Game.GetPlayer()
If akSourceContainer == Game.GetPlayer()
self.RemoveItem(akBaseItem,aiItemCount)
self.RemoveItem(akBaseItem,aiItemCount)
If hasBeenFedToday == False
If !hasBeenFedToday
hasBeenFedToday=True
hasBeenFedToday=True
EndIf
EndIf
Anonymous user

Navigation menu