MegaGlest Forum
Modding and game content creation => Mods => Topic started by: Empyre on 28 April 2013, 07:44:01
-
Hi,
I'm not sure whether I'm using the <unitAttacking> event incorrectly, but I have been unable to get it to trigger with any of the included MG scenarios I tried. As per the wiki, it should trigger when any unit attacks another unit. As a test, I'm putting a simple addConsoleText code (which works perfectly fine elsewhere) in the Amazones scenario file like so:
<unitAttacking>
addConsoleText('Attacking')
</unitAttacking>
My interest in this event is to try create a rudimentary cost system for attacking units. Currently, Glest engines only have an EP cost for attacks but it would be very useful if there was an optional system whereby attacks cost a certain number of one or more resources.
Also, if I may suggest: it would also be very useful for modders to have a sample scenario file that has a worked example of each of the available events.
-
... Also, if I may suggest: it would also be very useful for modders to have a sample scenario file that has a worked example of each of the available events.
I suggest you to look closely the "Lord of the Land" scenario/campaign from the mods' center (ingame menu). :)