Data Realms Fan Forums http://45.55.195.193/ |
|
Adding a new resource? http://45.55.195.193/viewtopic.php?f=1&t=30863 |
Page 1 of 1 |
Author: | Loewenherz [ Mon Apr 16, 2012 8:30 pm ] |
Post subject: | Adding a new resource? |
I was thinking about a mod which implents a new resource: Manpower. I want to gain automatically (maybe 30-45 seconds) 1 manpower. You need it for every soldier. But I'm a newbie at modding so I don't really know more than the basics. Maybe anyone can teach me how to do it |
Author: | Whydoch [ Tue Apr 17, 2012 1:30 am ] |
Post subject: | Re: Adding a new resource? |
A manpower resource wouldn't be awfully difficult. Start a timer when you begin a scene, then add 1 to manpower every x seconds. The hard part would be including a check for the number of bodies in incoming craft and autoreturning them if they exceed manpower. |
Author: | Coops [ Tue Apr 17, 2012 2:18 am ] |
Post subject: | Re: Adding a new resource? |
Just make a table when that checks for every actor on the scene that's on your team, if the amount of actors exceeds the manpower then delete the most recent actor added to the scene. Table's are a weird and tricky thing to handle with and takes practice, but that's how I would do it. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |