Page 1 of 1
Default action on...
Posted: 21 Jul 2007, 17:46
by Caydr
A way to set the default action for any unit onto any unit or object.
So for instance there'd be the default context-action for when you have X unit selected and your mouse is hovering over...
a dead unit
a live, friendly unit
a live, enemy unit
a live, friendly factory
and any others you can come up with...
The purpose is, it would be useful to allow a unit to by default, reclaim rather than repair, or capture rather than attack, etc. Very very useful.
Posted: 01 Aug 2007, 04:39
by Caydr
The eerie silence makes me think this has already been done and everyone's mocking me.
Posted: 01 Aug 2007, 05:23
by quantum
Lua!
Posted: 02 Aug 2007, 00:31
by Caydr
Can that seriously be done with LUA, or are you just on the "flying krogoth with balloon sandals? Just use LUA!" bandwagon?
If it can really be done with LUA, someone help me out please.
Posted: 02 Aug 2007, 01:14
by AF
Is that you in your avatar?
And yes you can make the krogoth fly on baloons wearing sandals in lua.
Posted: 02 Aug 2007, 01:31
by Caydr
Yessir, that's me. You DON'T want to see the earlier attempts, that you do not.
Posted: 02 Aug 2007, 02:26
by AF
I prefered it before your latest contrast increase tbh, now it looks more like the cliched average internet attempt at monochrome, change it back ^_^
Posted: 03 Aug 2007, 16:14
by Caydr
Changed it back. So, can someone tell me how to do this? It's really important.
Posted: 03 Aug 2007, 17:03
by AF
IIRC this si controlled in th code in a function with a name similair to GetDefaultCommand or Action.
Look at CUnit and the classes that inherit from it.
Posted: 03 Aug 2007, 23:34
by Comp1337
And caydr, you look like a badass in that pic. just had to say
Posted: 04 Aug 2007, 00:14
by Neddie
We should all have greyscale images of ourselves, then mix them up randomly on April Fools!
Posted: 09 Aug 2007, 01:39
by Acidd_UK
Comp1337 wrote:And caydr, you look like a badass in that pic. just had to say
And you look like a dirty cartoon slut!
Posted: 09 Aug 2007, 14:00
by Comp1337
Acidd_UK wrote:Comp1337 wrote:And caydr, you look like a badass in that pic. just had to say
And you look like a dirty cartoon slut!
And you love me for it <3
Posted: 07 Sep 2007, 01:07
by Caydr
Thanks, I was going for a Sin City look... sorta failed and wound up grayscaleish...
(I've never actually seen Sin City or... well I've never read a comic book either actually...)
ANNNNYWAYYYY, this feature is of vital importance to some stuff I'm looking at trying, and a bunch of people just said it's possible. Can someone outline how to do it with LUA?
Thanks
Posted: 07 Sep 2007, 02:02
by trepan
A little something I posted in the lobby this week:
http://trepan.bzflag.bz/spring/defcmd_geotherm.lua
It's first demo widget for the DefaultCommand() lua call-in.
LuaUI, LuaCob, and LuaRules can all use this call-in, but
LuaUI gets the final say (requires a recent SVN exec to
try it out).
The example widget sets up a geotherm build on valid
geotherm sites if an applicable builder is currently selected.
Posted: 07 Sep 2007, 02:28
by Zoy64
my avatar is a pic of me
Posted: 07 Sep 2007, 02:41
by quantum
quantum wrote:Lua!
Caydr wrote:If it can really be done with LUA, someone help me out please.
Woops, I said that then went into hiding, away from the Internets for a month
Anyway... what trepan said

Posted: 07 Sep 2007, 03:13
by Caydr
I'll take a look at your code, Trepan. Thanks!
Who's that in Comp1337's avatar? Looks Lucyish. No, wait... eyes aren't red. Who is that?
Posted: 07 Sep 2007, 08:31
by KDR_11k
Nyu or what she's called.
Posted: 07 Sep 2007, 19:33
by Caydr
That's what I thought, but her eyes don't look red enough. Weird.