| 10-23-2002, 08:25 PM | #1 |
Im part of a mod team making a huge RPG. And i wounder if there are any limits on variables, triggers and variables saved in the game cache in a map, or the size on the gamecache , cause i know it will be over a 1000 triggers per map and the game cache will hold a lot, and i mean a LOT of variables. I know there is a limit on doodads and custom units. But those are not a problem cause where making 6-7 diffrent maps. Note that this is a single player Mod. |
| 10-23-2002, 08:40 PM | #2 |
Only limit that I know of with Triggers and what not is that arrays can only have 1024 values. |
| 10-23-2002, 10:52 PM | #3 |
Not that this will probably mean anything to you, but there's a doodad limit too. I don't remember how high it was though. Before ver. 1.03, you could just autosave the map evertime you wanted to save; with ver. 1.03 it checks to see if there is stuff like that and it won't save. I CANNOT verify this, (or haven't yer, I guess) but that's what I heard. |
| 10-23-2002, 10:55 PM | #4 |
There's a patch on the main page to get you around the doodad limit though. Oh yeah, and if you have over a 1,000 triggers per map -- then your optimization skills suck :) Weaaddar, I know the limit isn't 1024. Hmm... maybe it's that you can only actually store 1024 things, but I can do array[5000] and store something in there and pull it out without a crash, I do that a ton on my latest map. |
| 10-23-2002, 11:53 PM | #5 |
Guest | u guys must really have alot of time to lose to write 1,000 triggers per map for 6-7 maps |
| 10-24-2002, 01:14 AM | #6 |
Guest | Ya, 1000 triggers is pretty bad per map. I mean, if you need that many, maybe WC3 isn't the engine you should be using. |
| 10-24-2002, 02:23 AM | #7 |
Obviously he is exaggerating. No one could possibly use 1000 triggers. (Well I guess they could if they wanted) but you can shorten most triggers and combine them with others to make it better. |
| 10-24-2002, 06:00 PM | #8 |
I belive im pretty good with triggers, you dont know what im making, so dont say that I suck cause im having 1000 triggers in my map, I would like to see you making a city, with a 70-80 villager making diffrent stuff, sleeping at night, say diffrent stuff to you if u have made a quest or not, some villagers you can ask about diffrent things, ( using key words you get when talking to people, those words you can ask others about and by doing that you can get quest's you otherwise wouldnt get ) , also know that im using game cache for all booleans and such, cause you should be able to walk back and forth from maps, it will be 6-7 maps bound together , so you ill be able to get a quest in the city map, maybe a quest that you have to get something , that thing might be on another map and yu ill have to bring it back. One quest ive made, a sheep quest. a girl have lost her sheeps and you should bring them back to her. if you bring 2 sheeps back and go to another map, then when you come back you will still have caught 2 sheeps, so you wont do the hole quest at one time, things like this you cant make with 1 trigger. i have used like 10, could probably lower that number with 3 maybe 4 triggers, but if there is no limit i dont see any reason why i should, cause its making it easier to find in the triggers what your looking for. could get a bit messy with so many triggers you know. This is a lot of work, and there will be a 1000 triggers per map . But we are a team of 5 right now working on it. Later on we will start making modells and voices to all units. Might need someone that got skills in 3ds max.. hm , anyway, there will be a release the 1 half next year, a homepage will soon be up. :ggani: |
| 10-24-2002, 08:37 PM | #9 |
For a villager saying different stuff, use an IF/THEN/ELSE trigger action. You can put all of the dialogue of a person in one trigger. Yeah, I guess it doesn't matter if there is infinite space for triggers, but it would make it cleaner and more organized. |
| 10-24-2002, 09:53 PM | #10 |
bah, ofcourse im using IF triggers, but thats not enough, im working with a lot of game cache , so when talking to someone i first of all have to have one trigger with only an if action. for example if (load questGhoul from Quest in Gamecache) equal to false, run trigger TalktoJosef else run trigger TalktoJosef-QuestGhoul Complete That makes 3 triggers. I also have some other trigger for this unit Josef. Like, Talk to Josef first time ( give you quest) Talk to josef Quest done ( when quest is done ) When the in Game time becomes equak to 18.00 ( Josef goes home ) When the in Game time becomes equak to 8.00 ( Josef awakes and goes back to his position. ) Periodic event, every random number betwenn 15-30 ( ordering him to move around on diffrent positions ) bla bla bla and so on... and this is triggers for ONE villager, then imagine triggers for 80. + all other triggers, goin in to houses, loading all quest's when you entering the map, checks if they are done, half done, ( in some case 1/3 done 1/4 done) Then monster triggers, camera triggers, like quest bosses and such we are making triggers so the bosses behaves diffrently so it wont be the old , cast your spell , bang on each other untill spell is ready, cast again.... bang bang... bla bla bla, its so boring. Our world will be alive , one time you can meet 2 wolfs on a place, the next time on the same spot you might meet 20. |
| 10-24-2002, 11:00 PM | #11 |
....still shouldn't reach a 1000 triggers. My most complicated map was 110, and it was pretty damn complicated. Also, with custom text you don't have to make those situations different triggers, you can put all the actions right into the if (although arguably that's not as clean). Although if you DO reach 1,000 triggers, lemme know, because that'd just be cool to see :) |
| 10-25-2002, 07:00 AM | #12 |
Well, I havent worked so much with custom text, so i dont know so much about what you can do with it, but as long as there is no limit i dont care so much. The main thing is that the map is working. :gsmile: |
| 10-25-2002, 09:37 PM | #13 |
Dataangel it is INDEED 1024 you however can do array and entry 1-1024 in completely different spectrums scattered over a 0..2^16 spectrum. Its in blizzard.j the max size for an array is constant at 1024 units. Dataangel I just made 1000 triggers :) There is no function to them though... |
