Difference between revisions of "Adding a script to an ingredient"

m
imported>UDUN
imported>UDUN
 
(2 intermediate revisions by the same user not shown)
Line 46: Line 46:
endif
endif
if (player.GetItemCount 01004547 != cheeses) && skippedframe==0
if (player.GetItemCount 01004547 != cheeses) && skippedframe==0
set skippedframe to 2
set skippedframe to 2     ;min 1
                 ;debugging purposes, see limitations
                 ;debugging purposes, see limitations
return
return
Line 62: Line 62:
====Limitations====
====Limitations====


If a large number of cheeses is dropped (shift+click) at once then the player ends up eating one of them - for me this occurs somewhere between 250 and 300 cheeses for ''skippedframe'' initially 2. Setting ''skippedframe'' to bigger values permits larger numbers being dropped simultaneously (I arbitrary set to 20 and was abl to throw 3000 at once).
If a large number of cheeses is dropped (shift+click) at once then the player ends up eating one of them - for me this occurs somewhere between 250 and 300 cheeses for ''skippedframe'' initially 2. Setting ''skippedframe'' to bigger values permits larger numbers being dropped simultaneously (I arbitrary set to 20 and was able to throw 3000 at once - caution : skippedframe for alchemy submenu set to 21 instead of 3 in both scripts).


[[User:UDUN|UDUN]] 11:28, 17 October 2008 (EDT)
[[User:UDUN|UDUN]] 11:28, 17 October 2008 (EDT)


[[Category:Solutions]]
[[Category:Solutions]]
Anonymous user