"Does Not Count" gadget

"Does Not Count" gadget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

"Does Not Count" gadget

Post by KDR_11k »

This is a simple gadget that lets you mark a unit as "not counting" with a custom param, e.g.

Code: Select all

	[customParams] {
		dontCount=1;
	}
"Not counting" means that if only units that don't count are left on a team they will explode immediately. Useful for attaching to mines and other units that aren't going to help the player much if only they are left but prolong the game by consuming time to find and destroy. Or maybe if you want a player to lose if he has lost his buildings and cons or something...

This didn't have thorough testing yet, might be useful if someone could test it in some real matches to see if there are no errors.
Attachments
doesNotCount.zip
again zipped because "The extension lua is not allowed."
(874 Bytes) Downloaded 45 times
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: "Does Not Count" gadget

Post by Tobi »

again zipped because "The extension lua is not allowed."
Fixed now.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Re: "Does Not Count" gadget

Post by Gnomre »

Thanks, this is quite useful.

Also, you're a hero for releasing your gadgets in a way that doesn't cause more licensing drama.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: "Does Not Count" gadget

Post by lurker »

Maybe make it allyteam instead?
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Re: "Does Not Count" gadget

Post by Guessmyname »

I imagine the S44 team will find this very useful
Post Reply

Return to “Lua Scripts”