I started today with the map editor, and wanted to make Castle Fight (Also made in Warcraft 3)
Since I got no experience with coding, I want to know how I can make a unit (a hero for example) make buildings and how to code it. Also the creeps should be attacking each other usually in the center of the lane (depends what time they are spawned) this also needs some coding but should be easy, since that is already used in Heroes of Newerth aswell.
The game is actually pretty simple and very easy to make I think. You got 2 castles one on the left center of the map, and one on the right center of the map. If you make a building, creeps from that building start to spawn. (For example you make a ranged barracks, every 10 seconds it spawns an archer)
You get gold for killing enemy creeps, so you can build more buildings which give the best battle advantage. Also there will be a rescue strike build in (When the enemy is on the edge of owning you, you can do the strike and all their units will be gone and you will get a gold boost)
Each side can have up to 5 players, maybe it will be more but the map editor doesn't allow it yet. (I prefer 6 so you can have 3 players per lane)
Also I hope I can get more factions in the game, but that is something for a later stadium. It will now probably just be Legion vs Hellbourne (Imagine how many varities of creeps you can have, since there are so many heroes =D)
Help is appreciated =)
Thanks in advance!
Personally, I havn't messed with units creating buildings yet, but you could possibly have a skill that lays down a gadget (the gadget being the tower), with a 0 cooldown and infinite time for the gadget being there. You can set up each skill to have a tri-button, like Soulstealer's Demon Hands, which would allow for 12 tower "skills" per builder, allowing for 12 different towers.
I'd check out Severon's Element TD here to see how he handles buildings, though..I havn't tried his map personally, but I'd imagine you could learn from it.
i have alot of free time and can help you if you sent me PM whit skype or email or some messenger to talk and work togeter
I love Castle Attack and i am really happy to know that someone is working on it.
Anyway i wish you a good luck, i would love to help, but my coding skills are not so good, i only have some experience from creating/editing addons/mods which is really not enough to create something like this.
Map design is pretty simple and shouldnt be a problem. However the building mechanics may be harder to implement.
Most difficult thing is balance which shouldnt be problem either because you can just copy all the stats and attributes from original W3 map.
And one more thing, have you thought about Armor Types and Damage Types? Because as far as i remember Castle Fight had like 8 Damage and Armor types.
@Diablo: That is indeed true with the armor types, I still don't have any idea how to do that. Still working alot on the map design and I hope someone will be able to help me with the coding and such. I already got some help of the basics but the harder part is to make the buildings and stuff. I will look around at the tower defense game and maybe ask him aswell how he did it. I also waiting for a reaction on my PM at MantisBG
You could also use items for your building, since I guess they would cost you gold to build, and there is no real way of changing gold using scripts.
Here is how to do the spawning:
Create new items that when used, spawn a building.
On that building, set an ability:
Create that ability:
Now you create that new state:PHP Code:
<applystate name="State_SpawnMelee" target="source_entity" continuous="true" />
This should work fine.PHP Code:
<spawnunit name="UNIT_TO_SPAWN" target="source_position" pushentity="true" />
<order command="attack_follow" force="true" source="stack_entity" target="TARGET_TO_ATTACK" />
Over all this wouldn't be to hard to do, though you are running into complications on buying buildings (if you want more than one race to play as, which I assume you do since WC3 has more than one) though that being said I bet you can just have the builder have access to x shop and buy items from there.
The spawning is as easy as oloko stated, though I will admit I wouldn't have been able to just type it out for you from memory, truth be told I'm not very good with this stuff and everything I know is trial and error.
Basically what your going to find is that your going to run into alot of file editing, over and over again, nothing to difficult for the most part, just time consuming
GL with it.
Dont expect it to be done in 2 weeks xD
You will need to work alot on it to make it atleast playable
some one here check my thread of naruto map pls go check if u can make it that be great
Whats the state now? I want play Castle fight again !!!
I remember - in WC3 version there was a problem, when u fight for more about 30 mins... there are sooo many creeps on base, no ones Computer can handle it and we all had to quit -.- maybe make a Timelimit or Buildingslimit?