Control through LuaRules

Control through LuaRules

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

Moderator: Moderators

Post Reply
eyu100
Posts: 182
Joined: 05 Jul 2008, 04:10

Control through LuaRules

Post by eyu100 »

Here's an idea: since anyone (even specs) can use the /luarules command, a very sophisticated gadget could allow players to switch allyTeams; it could even allow spectators to play. I'm assuming an unsynced gadget can make communicating with synced Lua easier than typing the /luarules command all the time, obviously. Here's how it could work: all game mechanics (resource production and storage, giving units, etc.) would be implemented in LuaRules and players play using LuaRules messages (probably widgets using the SendLuaRulesMsg()). UnitDefs can be modified so that any unit can attack any other), but the gadget decides whether to allow attack commands based on its own records of which players are on which team.

Things I'm not sure about:
  • Performance (this sounds really slow, but it might not be; I just don't know)
  • Does Spring already have a mechanism to let players switch allyTeams, or to let specs play?
  • Can UnitDefs be modified in the way I described?
Things I know will be problematic:
  • Many, many widgets (resource bars, unit sharing, etc.) would have to be written in order to provide a usable user interface
  • Lobby compatibility
This is not a serious proposal, and I have no plans to implement it, but as far as I know no one has discussed it before. What do you think?
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Control through LuaRules

Post by CarRepairer »

Wow.

/cheat
/team 2
eyu100
Posts: 182
Joined: 05 Jul 2008, 04:10

Re: Control through LuaRules

Post by eyu100 »

CarRepairer wrote:Wow.

/cheat
/team 2
But after you do /cheat, *anyone* can take team 2...
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Control through LuaRules

Post by CarRepairer »

Okay. I still think you're crazy :P
eyu100
Posts: 182
Joined: 05 Jul 2008, 04:10

Re: Control through LuaRules

Post by eyu100 »

CarRepairer wrote:Okay. I still think you're crazy :P
I wanted more specific feedback than that :|

Thanks anyway though.
Post Reply

Return to “Lua Scripts”