| 04-17-2005, 01:06 AM | #1 |
I am curious if it matters how you do the triggers in terms of map size/space. Like, if it takes up more space doing it one way verses the other way. On this screenshot, if I were to compress all P1-P6 triggers into one trigger, would that make the map smaller and reduce loading time, or make it bigger and increase loading time? Take a look and let me know o_O OK..... When trying to attach a file I got this error: Forbidden You don't have permission to access /newattachment.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/2.0.52 (Gentoo/Linux) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.3 Server at www.wc3campaigns.com Port 80 Ok.. Will have to do it the hard way, sigh... Hehehe. Got another place to link the pic: ![]() |
| 04-17-2005, 03:16 AM | #2 |
I say you try and look if it is smaller ;) |
| 04-17-2005, 04:16 AM | #3 |
think of it this way, triggers in most cases take up less than 3% of the maps total size so triggers will pretty much do nothing to the file size, you probably shouldn't even look into triggers for saving space unless uve done everything else and u want to save a few kilobytes but generally turning groups of triggers into 1 trigger (as long as you're not appending triggers together, and ur actually using logic and procedure to minimize the size of the trigger) is a good idea anyways cause its more organized and neater and usually more efficient |
| 04-17-2005, 07:42 AM | #4 |
Thx raptor. That's all I wanted to know. Do you think if I took all the p2-p6 triggers and added them to p1, changing a few things here and there, that it would reduce save/load time? Probably not :p |
| 04-17-2005, 08:20 AM | #5 |
i noticed you use variable names like "Heros_Cleric_P1", I assume you have "Heros_Cleric_P2", etc... this is what arrays are for, so you simply define Heros_Cleric[] and then when you use them you choose an index, such as Heros_Cleric[1], Heros_Cleric[2] which is especially helpful when you start making the numbers meaningful, like Heros_Cleric[(Player number of (Owner of hero manipulating item) )] or For Integer A = 1 to 8 + + Heros_Cleric[Integer A] if u already knew this then sorry for being redundant but it looks like something you could do to cut down the repedativeness |
| 04-19-2005, 05:29 AM | #6 |
Hehehe. Yea, I use array's alot :) I just didn't use it in this particular system :p |
