Difference between revisions of "Talk:RemoveAddedForm - FormList"
imported>M3rvin (Created page with "== RemoveAddedForm bugged? == I'm currently trying to manipulate a FormList filled with items using a container. The script is very basic but already gets screwed: <source la...") |
imported>Chesko |
||
Line 17: | Line 17: | ||
What am I doing wrong? -- [[User:M3rvin|M3rvin]] 09:31, 15 April 2012 (EDT) | What am I doing wrong? -- [[User:M3rvin|M3rvin]] 09:31, 15 April 2012 (EDT) | ||
This function is indeed potentially bugged. I do not recommend manipulating FormLists at runtime. See this discussion: http://forums.bethsoft.com/topic/1365445-bug-formlist-functions-seem-to-break-under-certain-conditions/page__fromsearch__1 [[User:Chesko|Chesko]] ([[User talk:Chesko|talk]]) 11:07, 18 July 2012 (EDT)Chesko |
Revision as of 10:07, 18 July 2012
RemoveAddedForm bugged?
I'm currently trying to manipulate a FormList filled with items using a container. The script is very basic but already gets screwed:
Event OnItemRemoved(Form BaseItem, int iCount, ObjectReference rItem, ObjectReference rContainer)
List.RemoveAddedForm(BaseItem)
EndEvent
Event OnItemAdded(Form BaseItem, int iCount, ObjectReference rItem, ObjectReference rContainer)
List.AddForm(BaseItem)
EndEvent
I used message boxes to track the problem: The items are added to the formlist without problem. The list itself is empty and gets just filled by the OnItemAdded Event, thus every item I want to have removed from the formlist was previously added by this very script to it. RemoveAddedForm just removes the form from the formlist at the very first try in the currently loaded save. That means that the first Item I remove from the container gets removed from the list as well. But then RemoveAddedFrom stops working. It won't even help to open the container again or to refill it completely.
What am I doing wrong? -- M3rvin 09:31, 15 April 2012 (EDT)
This function is indeed potentially bugged. I do not recommend manipulating FormLists at runtime. See this discussion: http://forums.bethsoft.com/topic/1365445-bug-formlist-functions-seem-to-break-under-certain-conditions/page__fromsearch__1 Chesko (talk) 11:07, 18 July 2012 (EDT)Chesko