View Single Post
  #2  
Old August 14th, 2008, 01:18 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Make ai harder in BI mod

It could be done as a normal hero. It could appear on turn 1, or not appear during a game of 80 turns, but it could also appear a turn before you were going to attack if you happen to be unlucky.

The "clone" couldn't be pretender-spesific, but national demigods or old friends or shadow of the Pantokrator as the nation worshipped it, all of these would work fine. There's just one problem: there isn't an easy way to restrict it to only AI nations, or to get rid of the hero if you get it yourself. If it was immobile and unable to teleport, like Sphinx, AND doesn't have magical capability above that of your normal heroes, you'd only benefit from it if you were already losing, so it would have at least helped to make the game more challenging.


That is perfectly doable, and not that hard either. Go to \dominions 3\doc and read the modding manual located there. Modding a unit might look like this:

#newmonster 2770
#copyspr 1111
-- when you view the description of a unit, press shift+i to see
-- it's unit nr. This lets you copy its sprite, or look).
-- lines like these won't affect the mod.
#copystats 1111 (same for base stats)
#clearmagic
#immobile
#weapon "Fire Brand"
#armor "Charcoal Shield"
#armor "Rainbow Armor"
-- only equipped items may give special abilities such as
-- resistances, reinvigoration or things like that. Weapons only
-- give you attacks or special attacks or the effect they have on
-- whatever they hit (fire brand affects an area etc), and armors
-- only change the name and statistics of the shield or armor or
-- helmet the unit has. But you can add many of the abilties,
-- including resistances, reinvigoration, fire shield etc, and
-- an additional buff spell as #onebattlespell.
#onebattlespell "Air Shield"
-- I'm not sure if these are the right commands, but they give
-- you an idea of what you might want to do:
#firesres 100
#reinvig 3
#fireshield 6
#itemslots 0

-- don't forget this!
#end

-- now add monsters 2771, 2772, 2773... and read nation modding for how to add them.
Reply With Quote