| 11-24-2004, 04:03 PM | #1 |
For my map, i want to make it so that you buy your hero's abilties at shops on the map. I remember this system is used on the Hero Builder arenas, and i was wondering if anyone know how to create this effect? |
| 11-24-2004, 04:27 PM | #2 |
I don't know if there is a better method, but you could just let the shop sell dummy abilities, and make a trigger, if for example the critical strike dummy item is selled, add ability(critical strike) to the hero(there is an action). |
| 11-24-2004, 05:51 PM | #3 |
I made a good map for a system like this; I think you may have actually played it in an earlier stage of development, Aelita. You can get to it from my forum by clicking on the "Woods Lore mini RPG" thread link. |
| 11-25-2004, 03:37 AM | #4 |
Actually, yeah. I think i remember that one Panto. I think i still have the map somewhere ^_^ |
| 11-25-2004, 04:42 AM | #5 |
The way I would do this is to create a bunch of units that are named exactly the same as the abilities that the shop sells. Add all of the abilities to an array. Each time a unit buys items from that store, traverse through the array and check if 'name of bought unit' = 'name of ability in array'. When the right ability is found, give the buying unit that ability. Sure beats doing a bunch of if-then-elses. |
| 11-25-2004, 01:55 PM | #6 |
check out vexorian's engineering upgrade test, it adds spells just like the normal hero abilities (they arent already learn like in hero builders). to find it, just go throught th pages of the repository or do a search on engineering upgrade or posts made by vexorian |
| 11-25-2004, 06:12 PM | #7 |
Engineering Upgrade is sort of a round-about bug-abusing way to accomplish the results. Since there's a cleaner method available since then, I'd discourage using the "old-fashioned" way. |
| 11-26-2004, 12:57 AM | #8 |
this is a great very unique map i made, still has some things i need to tweak, i stoppeed on it, working on my new AoS atm, but i think it owns, btw btw, i made this map before 1.17, so no goblin engernerring, i figured out how to make the skills levelable, just havn't implemented them, you shoudl all check out this really nice hero arena i made, there is so much stuff to do in it, lolz. mm i remember some quotes from my friends that were used to make it, such as "Hey brown, meet me in pit 3, lets own that mafia." and "I own teh minigame, more than i own you brown." lolz just some stuff my friend and i were making up, good times... |
| 11-26-2004, 02:39 AM | #9 |
Guest | Very good ideas but what about when a unit gets to many? Like lets say I walk up to said store with Sheep Killa I and I want to buy Sheep madness. Well lets say theres 8 in shop and I buy them all, there isnt enough spots in the Unit Control Panel for 8 of Said spell or 8 various spells for that matter. To try and answer my question.... maybe not :said material deleted for eventually leading no where: |
| 11-26-2004, 05:48 AM | #10 |
Let me specify a little bit here. I want to make it so that when a hero buys the item corresponding to the ability, it adds that ability to the Ability list (the list under the red cross button). That is what i am aiming for. EDIT: Would you mind posting how to do that leveling process? |
| 11-26-2004, 06:43 AM | #11 |
The triggers that add abilities add them only as Unit abilities, not as Hero abilities. That's why I used dummy hero abilities in Woods Lore and levelled unit abilities. |
| 11-26-2004, 01:10 PM | #12 |
EDIT: http://www.wc3campaigns.com/showthread.php?t=55947 << link for the system that why i suggested the engineering upgrade test, it maybe bug reliant - but it works... and it produces the exact results desired - it will add the purchased spell to the "hero abilities button" you can go about it other ways and stuff, but that is the only way i know/see that does it. {theory} maybe you can "shift click" and add every single ability that you want available... then at map intialisation add the trigger "player - disable ability for {player}" and disable each ability (maybe put it in a variable array?). then when a unit purchases a dummy item for the corresponding ability, it will enable that ability - thus adding it to the hero ability button? its just me throwing out a theory. |
| 11-27-2004, 02:47 AM | #13 |
I think i will give that a spin. It might work, since the abilties are already added to the units. I'll let you know if it turns up. It is gonna be a lot of work, though. |
| 12-01-2004, 04:49 PM | #14 |
Guest | i want to take it a level up-how to make 3 item combo to get a spell (like in spellcraft) |
| 12-01-2004, 08:35 PM | #15 |
What you're asking may be too much boomwolf but... I would say, record the unit that is buying the stuff and remember the order that he is doing these things in with your triggers and variables. So like for example A unit buys something (record that unit in a variable) (record what he bought) A unit buys something AGAIN (check to see if the unit is in the variable) (check to see if the last thing he bought is what he was supposed to buy) ect, ect. |
