Thanks was going to delete comment because thought of it but you were first... DAMN ITjuanjpro wrote:Using a global variable wouldn't be a good idea because that means refining any gas mask in 914 will turn every gas mask in the map into a super gas mask. You could use the item's State field instead:Breaks in loops can be done with Exit.Code: Select all
it2\State = 1.0 ;and then modify the inventory code to use this
EDIT: After a brief thinking, after comparing pros and cons i thought that this would need too much work and it wouldn't make game any faster (Negligibly yes), and i would sacrefice compatibility with source code and other mods, so i decided to not change anything, stay with old things and try to live with them . But this adventure told me a lot about game code and how it is constructed so i think it was worth it anyways. I will work for the next hour and probably not do anything worth a stop. But only lay a fundation.
EDIT2: FIANLLY some updates, sorry guys for not doing anything for the weekend but i have been really busy, i wasn't even a single minute on computer on saturday. On sunday i had guests.
It has been a really tough fight because i THOUGHT that coding in blitz is close to at least Pascal but nooooooo, for me there have been booby traps in one place after another, but after 3 hours i have learned them all and won't fall in them again, so progress after this update should pick up on quite some speed.