PDA

View Full Version : Working on a Castle Fight map



Typhooni
12-19-2010, 01:16 PM
Hey,

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)


Anyway

Help is appreciated =)


Thanks in advance!

Typhooni
12-19-2010, 01:17 PM
Reserved

Amuse
12-19-2010, 04:34 PM
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 (http://forums.heroesofnewerth.com/showthread.php?t=76241) to see how he handles buildings, though..I havn't tried his map personally, but I'd imagine you could learn from it.

MantisBG
12-19-2010, 04:45 PM
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

Diablo
12-19-2010, 04:52 PM
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.

Typhooni
12-19-2010, 05:51 PM
@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

Oloko
12-19-2010, 05:52 PM
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 (http://forums.heroesofnewerth.com/showthread.php?t=76241) to see how he handles buildings, though..I havn't tried his map personally, but I'd imagine you could learn from it.

You can't have that many spells, you can only have one spell that is divided into 3. So you would have a maximum of 6 with the possibility of changing the attribute ability and the taunt.

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:
inventory0="Ability_SpawnMelee"

Create that ability:



<ability
name="Ability_SpawnMelee"

icon="icon.tga"

baselevel="1"
maxlevel="1"

actiontype="passive"
>
<onspawn>
<applystate name="State_SpawnMelee" target="source_entity" continuous="true" />
</onspawn>
</ability>
Now you create that new state:



<state
name="State_SpawnMelee"

icon="icon.tga"

impactinterval="3000"
>
<onimpact>
<spawnunit name="UNIT_TO_SPAWN" target="source_position" pushentity="true" />
<order command="attack_follow" force="true" source="stack_entity" target="TARGET_TO_ATTACK" />
</onimpact>
</state>
This should work fine.

Amuse
12-19-2010, 08:00 PM
You can't have that many spells, you can only have one spell that is divided into 3. So you would have a maximum of 6 with the possibility of changing the attribute ability and the taunt.



Oh alright, good to know. I obviously didn't try it before I posted, but didn't see why they would limit it to only one ability that can be split into 3.

Regardless, nice post Oloko, very helpful.

Severon
12-20-2010, 02:40 AM
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

FlameStick
12-20-2010, 04:12 AM
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 :)

IamKongor
12-20-2010, 10:21 AM
i want it!
could you post some screenshots ?

Nine_Tailed
12-25-2010, 04:20 AM
some one here check my thread of naruto map pls go check if u can make it that be great ;)

LonJAXsoN
12-25-2010, 11:26 AM
Please don't spam threads about what you said in a different thread.

IamKongor
12-25-2010, 02:57 PM
How is the state of your map?
i want screenshots :)

Vitamin_C
01-19-2011, 05:39 PM
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?

``OmgImSoBad
01-29-2011, 10:00 PM
CF is a legendary map from wc3, can't w8 u will finish ur map! :D

Pikarya
04-05-2011, 12:00 PM
CF holds a big part in my heart. Get this done!

Ryuukun
03-07-2013, 05:12 PM
I put all my hope into you. I love castle fights, it's the nr.1 reason I go back to wc3 on a regular basis. Please do a fine job :D

Elceles
03-07-2013, 05:48 PM
I really love Castle Fight in WC3, I would like to see in HoN but I think the OP gave up because the topic is kinda old ... :(