A little SDK help to perfect my mod!

Joined
Sep 15, 2006
Messages
511
I've made it so that terrain advantages go both way, I've found this to realy help out gameplay.

Examples:
Attaking from a forest gives you a 50% advantage.
Attaking from a hill gives you a 25% advantage.

The problem is that it while it takes this into account when calculating odds, allowing the AI to use it properly, when you left click the advantage dosn't show up. How do I make it show up?

Allso in printing messages I have this problem. Here's what I tried.

The SDK code is this:
Code:
szBuffer = gDLL->getText("TXT_KEY_MISC_IMMIGRATION_CITY", pHomeCity->getName, pTargetCity->getName);
						gDLL->getInterfaceIFace()->addMessage(getOwnerINLINE(), false, GC.getDefineINT("EVENT_MESSAGE_TIME"), szBuffer, NULL, MESSAGE_TYPE_MINOR_EVENT, ARTFILEMGR.getInterfaceArtInfo("INTERFACE_UNHEALTHY_PERSON")->getPath(), (ColorTypes)GC.getInfoTypeForString("COLOR_RED"), getX_INLINE(), getY_INLINE(), true, true);

And the XML is this:
Code:
	<Tag>TXT_KEY_MISC_IMMIGRATION_CITY</Tag>
		<English>People Have Left %s1_CityName and Moved to %s2_CityName!!!</English>
		<French>People Have Left %s1_CityName and Moved to %s2_CityName!!</French>
		<German>People Have Left %s1_CityName and Moved to %s2_CityName!!</German>
		<Italian>People Have Left %s1_CityName and Moved to %s2_CityName!!</Italian>
		<Spanish>People Have Left %s1_CityName and Moved to %s2_CityName!!</Spanish>
	</TEXT>

The result is this
People Have Left and Moved to <--This is White and bold.

I want it to say People have left homecity and moved to targetcity.

Thanks for any help!
 
Thanks PeteT!

Do you happen to know how to add the odds to the little bottom felt screen for the attackers by any chance.
 
Back
Top Bottom