Difference between revisions of "Talk:Activate"
Jump to navigation
Jump to search
→Fake "Nesting": Yes, it is useful
imported>Quetzilla (→Fake "Nesting": is deep nesting really necessary/useful?) |
imported>Haama (→Fake "Nesting": Yes, it is useful) |
||
Line 85: | Line 85: | ||
:I was thinking about this, and I was wondering what situations would really call for nesting 5-6 levels deep? I think generally better practice would be to have most activator scripts do something and then return, rather than call another activator mid-script. Most things that can be done via deep nesting can also be done relatively painlessly via simple nesting. So again, I'd be interested to see examples of where deep nesting would be used and for what. | :I was thinking about this, and I was wondering what situations would really call for nesting 5-6 levels deep? I think generally better practice would be to have most activator scripts do something and then return, rather than call another activator mid-script. Most things that can be done via deep nesting can also be done relatively painlessly via simple nesting. So again, I'd be interested to see examples of where deep nesting would be used and for what. | ||
:--[[User:Quetzilla|quetzilla]] 06:13, 10 August 2008 (EDT) | :--[[User:Quetzilla|quetzilla]] 06:13, 10 August 2008 (EDT) | ||
::Then check out the COBL [http://www.uesp.net/wiki/Tes4Mod:Cobl/Modding/General_Functions Functions] or [http://www.uesp.net/wiki/Tes4Mod:Cobl/Modding/Recipe_Updater_Engine RUE]. For the functions, there are basically two issues: I never know how deep the nest is when a modder calls them, and there are small parts of the script, like refreshing the container or player's inventory, that I expect to update (better method, OBSE function, etc.). For RUE, well... RUE is pretty freakin' complex and I had to condense a few scripts because I went over the nesting limit. The recipe (cobRUERecipeEnchScrollOS) calls the Open Recipe function (cobRUEOpenRecipeFAS) which calls...--[[User:Haama|Haama]] 10:34, 10 August 2008 (EDT) | |||
== RunOnActivateBlock Flag == | == RunOnActivateBlock Flag == |