These are for modders, its a resource to learn from, its something I know many modders want to know but dont even have proper examples to learn from or even know what anything does, and I will provide different types of mods to this helps ease that pain, as it takes time to learn. Feel free to ask questions in comments where you are confused but make sure to read the tutorials I added first as it explains everything in detail. I will take requests for things, much of it is easy but time consuming, which makes it hard.

Post tutorial Report RSS Adding damage reports for repaired components in men of war.

I've figured out how to add damage reports for repaired components ingame. Eg. If a vehicle's track has been damaged and you've finished repairing it, an indicator (damage report) will appear.

Posted by on - Basic Other

1) You need to have access to the vehicle.inc and #dlg_ngame files.

2) Open the vehicle.inc file, search for 'on repair' and add in this code.

{if component "body"
{damage_report "body" "component/hull_serviced"}
}
{if component "engine"
{damage_report "engine" "component/engine_serviced"}
}
{if component "gun"
{damage_report "gun" "component/tank_gun_serviced"}
}
{if component "trackleft"
{damage_report "trackleft" "component/track_serviced"}
}
{if component "trackright"
{damage_report "trackright" "component/track_serviced"}
}
{if component "turret"
{damage_report "turret" "component/turret_serviced"}
}

}

3) Before you input the above mentioned code - once you've found 'on repair' you should see this.

{on repair
{call "update_moveable"}
{call "repair_light"}
}

4)Save the vehicle.inc file, open up the '#dlg_ingame' file and search for "component".

5)Add in this code,

{"engine_serviced" "<c(FF9933)>Engine serviced<c(FF9933)>"}
{"hull_serviced" "<c(FF9933)>Hull serviced<c(FF9933)>"}
{"tank_gun_serviced" "<c(FF9933)>Main gun serviced<c(FF9933)>"}
{"track_serviced" "<c(FF9933)>Track serviced<c(FF9933)>"}
{"turret_serviced" "<c(FF9933)>Turret serviced<c(FF9933)>"}

6) Save the '#dlg_ingame' file and test the settings ingame, if everything goes smoothly then if a damaged vehicle's component - ex. tracks,engine etc gets damaged and once it's repaired a notification will pop up.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: