View unanswered posts | View active topics It is currently Sat Dec 28, 2024 4:25 pm



Reply to topic  [ 3 posts ] 
 Adding a new resource? 
Author Message

Joined: Mon Apr 16, 2012 8:23 pm
Posts: 1
Reply with quote
Post 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 :D


Mon Apr 16, 2012 8:30 pm
Profile
User avatar

Joined: Wed Jan 25, 2012 4:20 pm
Posts: 38
Reply with quote
Post 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.


Tue Apr 17, 2012 1:30 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post 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.


Tue Apr 17, 2012 2:18 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.078s | 14 Queries | GZIP : Off ]