HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with cloning heroes with tome-increased stats

04-16-2004, 11:12 PM#1
ryto
Hello this is my first post here :D

Now.. my problem is this, i want to clone a hero and its stats which have been increased with tomes, i know how to do this but lag problems arise during extended games, the hero which buys the tomes has triggers monitoring its acquisition of items and thus when i spawn in a hero other triggers hand tomes to this new hero and upgrade its stats to what they should be, however if the game gets to a point where i've purchased 100 of each str agi and int tomes the game lags due to the huge loop these triggers create:
If (tomes[0] Greater than 0) then do (For each (Integer A) from 1 to tomes[0], do (Hero - Create Tome of Strength and give it to (Triggering unit))) else do (Do nothing)
and there are 2 others for agi and int tomes.
So in other words in an instant im expecting the game to give 300 tomes to this hero and it causes the game to pause for a few seconds.
Now I did think of a solution to this also, I could modify abilitydata.slk and give increased values to the stat mod abilities to 1, 5, 10 and 25 and then have triggers in game to work out when these new tomes are needed.
I have not tested this though.

I was wondering perhaps there is another method of doing this I do not know of? A way to clone a hero and its modified stats into a non-hero unit?, because in the map I am making there can be up to 10+ of these cloned heroes and I believe having so many heroes causes bugs when trying to revive my main hero character in the game, and perhaps there is a way other than I have thought of to remove the lag of giving so many items at once to a hero?

Thanks I appreciate any help you can offer.
04-17-2004, 12:32 AM#2
BBDino
Surely it would be easier to use the actions that relate to stats increasing (im sure there is an action to increase a hero attribute by X amount, i use it myself!)
04-17-2004, 12:38 AM#3
ryto
i have never seen an action like that.. but i am using just the plain world editor, was thinking i might get WEunlimited and see what options it adds..
04-17-2004, 01:33 AM#4
joseka
In WE there the ACTION Hero Change Hero Attributes , there you should change the INT AGI and STR
04-17-2004, 04:41 AM#5
ryto
there dont seem to be any options like that, i am using WE version 1.14, with no addons, just the basic WE you get with warcraft3, i do not have the frozen throne addon either.
04-17-2004, 09:04 AM#6
BBDino
sheesh, just go get the frozen throne for gods sake, its soooo much more powerful than the ROC WE.
04-17-2004, 11:58 AM#7
ryto
i bought warcraft3 ROC, which came with the world editor, and I have to buy the expansion just to get the updated version of the world editor? what kind of cheeky marketing is that, the frozen throne is an expansion, extra maps, extra content, thats downright dirty making u buy the expansion pack to get the updated version of the world editor, thats why the expansion costs less, cause its just extra campaigns, i bought the GAME itself in the original... what scum :(
04-17-2004, 12:56 PM#8
Anitarf
Sorry, but the expansion also means new code which is apparently required for many new things in the WE to work. Besides, Blizzard products still give you one of the highest values for your money in the entire gaming industry, so it's really lame if you bitch about their marketing.

And this is probably lame of me to say, but there's another solution to your problem: just don't use tomes. I don't mean disrespect for your work, I just don't like tomes in a map; it usually sucks having them.
04-17-2004, 02:25 PM#9
ryto
I agree they make good games, but its still cheap making me buy the expansion to get something I should be given for free, the expansion is a cheap addon that gives additional content, i already purchased the game and its initial content. *sigh*

Quote:
Originally Posted by Anitar
And this is probably lame of me to say, but there's another solution to your problem: just don't use tomes. I don't mean disrespect for your work, I just don't like tomes in a map; it usually sucks having them.

I agree again, tomes can be really ghey in certain maps, but in the map im designing they are not an unbalancing part of the map, they are the main part of it, and they dont become overpowering real quick like in some footwars maps etc, its all strategy.