Difference between revisions of "Adding a script to an ingredient"
Adding a script to an ingredient (edit)
Revision as of 11:28, 17 October 2008
, 11:28, 17 October 2008no edit summary
imported>UDUN m |
imported>UDUN |
||
Line 47: | Line 47: | ||
if (player.GetItemCount 01004547 != cheeses) && skippedframe==0 | if (player.GetItemCount 01004547 != cheeses) && skippedframe==0 | ||
set skippedframe to 2 | set skippedframe to 2 | ||
;debugging purposes | ;debugging purposes, see limitations | ||
return | return | ||
elseif (player.GetItemCount 01004547 != cheeses) && skippedframe>1 | elseif (player.GetItemCount 01004547 != cheeses) && skippedframe>1 | ||
Line 60: | Line 59: | ||
end | end | ||
</pre> | </pre> | ||
[[User:UDUN|UDUN]] | |||
====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). | |||
[[User:UDUN|UDUN]] 11:28, 17 October 2008 (EDT) | |||
[[Category:Solutions]] | [[Category:Solutions]] |