PDA

View Full Version : Interval Resources win condition



Adovid
18th Feb 08, 4:52 PM
Its basically a game setting that removes income and instead gives income to players based on their captured points and buildings every 90 seconds and displays a timer along with it. Kind of feels turn based a little bit. You can mess with the scar and do what you want. Don't really need credit but would be nice etc. and any tips/errors if you have them.

You can just add IntervalResource.scar ( http://files.filefront.com/IntervalResourcescar/;9659817;/fileinfo.html) and IntervalResource_local.lua (http://files.filefront.com/IntervalResource+locallua/;9659820;/fileinfo.html) to your_mod/data/scar/winconditins/

and here is the ucs file for the timer:
http://files.filefront.com/Hammer+Forgeucs/;9659824;/fileinfo.html

you can change it to the name of your mod and move it to your_mod/local/your_language/ or you can add this value to your mod's ucs file:

15000000 Next Resource Interval: %1NUM%

If you are using slot 15000000 you can go to the scar file and change the value passed into WinWarning_SetText in Rule_ResourceCountDown.

Gallonigher
19th Feb 08, 4:41 AM
Cool! Sounds a bit like Ground Control.

Speaking of which... would it be possible to order waves of units to arrive at timed intervals?

Adovid
19th Feb 08, 9:43 AM
You mean like to create units in the game?

Yeah sure.


SquadID Squad_Create( String squadblueprint, PlayerID player, Position pos, Integer loadoutCount )
Create a squad and assign it to a player.

This will create a squad of size 'loadoutCount' and of unit type 'trooper_base' (from squad blueprint)
Note: if loadoutCount is zero, the min loadout will be used. loadoutCount will be clipped to the max loadout if it ever exceeds it.
http://www.relicrank.com/frameset/frameset.htm

Promythyus
28th Feb 08, 10:39 PM
ooh, this is a great win condition, thanks!! I'll be sure to modify it to spawn squads (for personal use of course)

Adovid
29th Feb 08, 12:19 PM
Thanks, you're a pretty experienced modder. It's nice to get some praise :P.

If you have any comments/suggestions I would be happy to take them.