HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero ability - buld

02-14-2004, 05:00 AM#1
Earth-Fury
how can i make a hero ability that is LEVELABLE that lets heros buld buldings WITH gold and lumber cost. no, tyny town hall ext cant be given gold cost.
02-14-2004, 06:04 AM#2
Grater
You can make the hero summon a "wisp" that is then used to build the actual building.
02-14-2004, 08:03 AM#3
sgtteflon
You cant, using the abilities given to you. You can cheat. Use a spell that has a target, make it do nothing. When the ability is cast, have him pick a target, and save it. Now show a list of buildings, spell-book style, with gold costs and all in the tool tip. When he clicks on one, check to be sure the gold and lumber is there, then take it away, then put the building at the saved target location. you can get fancy by moving the hero over, and playing his attack animation or casting animation or whatnot depending on the race, to make it look like hes actually building it.
02-14-2004, 09:20 PM#4
Earth-Fury
lol ya, right. liek i got that kinda time on my hands. any other ideas?
02-14-2004, 09:41 PM#5
Kirym
the other dudes right, thats the only way to do it, it doesn't take that long, hell, i'd do it for you if you wan me.
02-14-2004, 09:48 PM#6
35263526
Actually, there is a way to use the normal build functions on a hero.

Just download the attached file, create a folder called Units in your Warcraft III directory, and put the file in it!

When you've done this, restart WE and you should be able to select buildings for heroes to build in the object editor.

Unfortunately, this isn't levelable. The best thing you can do is make a dummy skill (passive), and setup a trigger so that when the skill is learnt, it researches an upgrade, and the buildings of each level need the uprade.
02-14-2004, 09:50 PM#7
Earth-Fury
but isent the buld menue the same as the ability select menue? like if u have hero abilitys, and buld, theyll both appear in the same emnue.
02-14-2004, 09:52 PM#8
35263526
I don't know. Go try it. I would, but my computer has serious problems running Warcraft III.
02-14-2004, 09:53 PM#9
Earth-Fury
it doas. it did it in yodas WoW
02-15-2004, 01:52 AM#10
Grater
I still say by far the easiest way is to just adjust how the skill works to make it summon a wisp.

However the "Tiny Farm" method isn't so bad, just put the gold/wood cost in the tooltip, then when the ability is used:
Unit - A unit Begins construction

Compare the gold/lumber cost of the constructing building with the amount it's owner has. Then either deduct the amount, or cancel the construction (remove constructing building) and make an authentic looking "not enuff resources" message.

Unfortunately there is no direct way to get the gold/lumber cost of a building, I would just put the gold and lumber costs in parameters of the unit-type that can be accessed with triggers, for example point value, and Flying Height is unused for buildings.
02-15-2004, 04:10 AM#11
Grater
Still wouldn't be levelable.
02-15-2004, 07:42 AM#12
Earth-Fury
cool, they fixed it. anyway, im gonna have to do a shitloard of trigger work to get it to work.... ill open source it when/if i finish