talchas
Prince
- Joined
- Jan 3, 2006
- Messages
- 428
This mod is just a demonstration of how Civ4 could be modded to include some sort of magic system and how to allow the user to select a square using the main map.
It includes 1 unit that appears as "Mage Description" and 3 promotions, Mana1, Mana2 and Mana3 which each provide mana. It has 1 spell that deals 15% damage to all units on a square.
Things that would probably need to be changed for a real mod (other than the names + that sort of thing):
I'm not sure if this belongs here or in the general forum, but this is as completed as it is likely to get, so I posted here.
The zip file should just be unzipped into the Mod folder. The mod is called Spelldemo.
If you like any or all of it feel free to take it.
Edit:
Added version with effects when casting.
It includes 1 unit that appears as "Mage Description" and 3 promotions, Mana1, Mana2 and Mana3 which each provide mana. It has 1 spell that deals 15% damage to all units on a square.
Things that would probably need to be changed for a real mod (other than the names + that sort of thing):
- The spell just deals with percentage damage - a tank gets hurt just as fast as a warrior. Maybe divide by the strength, or sqrt/log of it. It could be interesting
- The spell doesn't give xp for killing something, easy enough to change.
- The spell doesn't require you to be at war, and doesn't trigger war. It wouldn't be too hard to check for war, but it might be more difficult to trigger war and give the normal warning.
- Having a whole bunch of guys that can strike at range, or just without retaliation could be hard to balance, so at the very least it could be good other mages to retaliate - perhaps leading to a ranged battle. Maybe a 1 spell/turn limit or movement usage should be set up.
- (bug)Currently if you pick a spell + then switch units, it still lets you try to cast and is generally bugged. It should just cancel casting when you switch. You could probably get around the preresquisites for a spell like this.
- Changing the tooltips to add ones for the spell buttons and to display the mana for units would be nice too, but I have no idea if this is doable. Maybe if you used really large action numbers for appendMultiListButton that aren't used by Civ4 but are positive so you could somehow give them a tooltip? I haven't looked at that stuff.
I'm not sure if this belongs here or in the general forum, but this is as completed as it is likely to get, so I posted here.
The zip file should just be unzipped into the Mod folder. The mod is called Spelldemo.
If you like any or all of it feel free to take it.
Edit:
Added version with effects when casting.