Mirami2009-08-19 21:13:56
So I've switched over to MUSH, and tried to go aetherbashing again... and realized that I have lots of trouble when it comes to MUSH/Lua scripting. Are there any plugins/advice for how to go about making/getting a decent aetherbashing setup? I'm a gunner, so what I'm looking for is:
Auto-fires when turret is targetted, targets when turret is not targetted, gags targets not present ("No such creature exists within range of a battle turret."), echoes back when there are no targets on a targetting attempt.
Are there any plugins that have this, or will I be teaching myself some more Lua?
Auto-fires when turret is targetted, targets when turret is not targetted, gags targets not present ("No such creature exists within range of a battle turret."), echoes back when there are no targets on a targetting attempt.
Are there any plugins that have this, or will I be teaching myself some more Lua?
Unknown2009-08-19 21:41:25
From my experiences, it's not really feasible to auto-target things in aetherspace unless you have someone calling out targets reliably. Aetherbashing is already the easiest thing in the world, especially for the gunners, so I would just use a few simple aliases and be happy with that!
Ilyarin2009-08-19 21:45:40

I have made plugins for each, but I didn't intend them for public release. It's more than feasible! Doesn't take much effort at all .
Mirami2009-08-19 22:10:29
I'm sure if I knew how to use Lua, it wouldn't be hard at all!
However, I can't seem to get what I was doing before with elseif to be working...
So far, I have the following set to trigger when I regain turret-balance:
it's sent to script, and variables are expanded.
What am I doing wrong?
However, I can't seem to get what I was doing before with elseif to be working...
So far, I have the following set to trigger when I regain turret-balance:
CODE
if @firing = 1 then
Send("turret fire")
elseif @targetting = 1 then
targetting
elseif @targetting = 0 then
Note ("NO TARGET")
Note ("NO TARGET")
end
Send("turret fire")
elseif @targetting = 1 then
targetting
elseif @targetting = 0 then
Note ("NO TARGET")
Note ("NO TARGET")
end
it's sent to script, and variables are expanded.
What am I doing wrong?
Tervic2009-08-19 23:12:17
QUOTE (Romertien @ Aug 19 2009, 03:10 PM) <{POST_SNAPBACK}>
I'm sure if I knew how to use Lua, it wouldn't be hard at all!
However, I can't seem to get what I was doing before with elseif to be working...
So far, I have the following set to trigger when I regain turret-balance:
it's sent to script, and variables are expanded.
What am I doing wrong?
However, I can't seem to get what I was doing before with elseif to be working...
So far, I have the following set to trigger when I regain turret-balance:
CODE
if @firing = 1 then
Send("turret fire")
elseif @targetting = 1 then
targetting
elseif @targetting = 0 then
Note ("NO TARGET")
Note ("NO TARGET")
end
Send("turret fire")
elseif @targetting = 1 then
targetting
elseif @targetting = 0 then
Note ("NO TARGET")
Note ("NO TARGET")
end
it's sent to script, and variables are expanded.
What am I doing wrong?
PM me and I'll send you my (really) old set of MUSH triggers for a Battle Turret. They're inefficient, but they work well enough.
Vathael2009-08-20 00:06:18
i had a zmud setup that queued targets off whats in the area, what people were hitting then went back to trying to auto-target every 1 second which took care off random creatures and linking all at once. maybe one day ill make it for mush.
Mirami2009-08-20 00:08:08
I've got the targetting down, All I need to do is figure out how to get my if-thens to work.
Vathael2009-08-20 15:01:28
im not a mush pro but if it were me id have done something like:
if GetVariable("firing") == "1" then
Send("fire")
elseif GetVariable("targetting") == "1" then
etc
etc
if GetVariable("firing") == "1" then
Send("fire")
elseif GetVariable("targetting") == "1" then
etc
etc
Unknown2009-08-20 16:04:45
Use == instead of = when comparing in an if statement. When you retrieve a variable's value in MUSHclient, it's always a string, so you need the quotes as Vathael has above.
P.S. There should be no "tt" in "targeting."
P.S. There should be no "tt" in "targeting."
Vathael2009-08-20 16:10:31
dont hound me for my typos! im having to reply on my cell phone. 

Chade2009-08-21 11:42:37
I'm willing to pay in credits or dingbats for empath and battle turret plugins for MUSH.
Unknown2009-08-21 17:25:12
Trigger:
The empathic grid whirrs quietly, ready to be used once again.
to
GRID REPAIR HULL
GRID REPAIR MODULE
GRID JOIN
Spammy, but it works fine and your proficiency will go up at a reasonable rate instead of basically never.
The empathic grid whirrs quietly, ready to be used once again.
to
GRID REPAIR HULL
GRID REPAIR MODULE
GRID JOIN
Spammy, but it works fine and your proficiency will go up at a reasonable rate instead of basically never.
Mirami2009-08-21 22:58:47
QUOTE (Chade @ Aug 21 2009, 04:42 AM) <{POST_SNAPBACK}>
I'm willing to pay in credits or dingbats for empath and battle turret plugins for MUSH.
I'll figure out how to convert what I come up with into a plugin, when I get it to work, then.
Mirami2009-08-21 23:30:16
Okay, time to deal with this pesky code once again.
Am I going about this right? It has troubles with line 8, the last "elseif"... I don't see anything wrong with the last elseif. Any idea what I'm missing?
CODE
firing = GetVariable("firing")
targetting = GetVariable("targetting")
if firing == 1 then
Send("turret fire")
elseif targetting == 1 then
targetting
elseif targetting == 0 then
Note ("NO TARGET")
Note ("NO TARGET")
end
targetting = GetVariable("targetting")
if firing == 1 then
Send("turret fire")
elseif targetting == 1 then
targetting
elseif targetting == 0 then
Note ("NO TARGET")
Note ("NO TARGET")
end
Am I going about this right? It has troubles with line 8, the last "elseif"... I don't see anything wrong with the last elseif. Any idea what I'm missing?
Unknown2009-08-22 01:21:53
The variables will be strings, not numbers, so doing 'firing == 1' is not going to evaluate to true. You need to use 'firing == "1"' instead.
Ilyarin2009-08-22 09:43:16
I'm selling my empath/siphon/turret plugins now (MUSHClient, although I believe you could put it in to Mudlet with a little work).
All come with on/off, incase you want to manual or you meet another aethership (ooo!). Turret with auto-target and fire when you want it to, based on a list of priorities. Siphon will auto-siphon upon seeing a vortex. Empath will auto-heal when attacked by aetherbeasts, including prioritised healing for hull and modules. Also has a script to to faciliate easier trade between gnome ships. Anyone who purchases will go on a list to receive updates.
Siphon: 1cr.
Turret: 5cr.
Empath: 5cr.
All come with on/off, incase you want to manual or you meet another aethership (ooo!). Turret with auto-target and fire when you want it to, based on a list of priorities. Siphon will auto-siphon upon seeing a vortex. Empath will auto-heal when attacked by aetherbeasts, including prioritised healing for hull and modules. Also has a script to to faciliate easier trade between gnome ships. Anyone who purchases will go on a list to receive updates.
Siphon: 1cr.
Turret: 5cr.
Empath: 5cr.
Unknown2009-08-22 10:06:55
I can vouch for Ilyarin's Siphon Plugin(Thanks again!)
What other Plugins do you have that might be useful? I've had nothing but success so far.
What other Plugins do you have that might be useful? I've had nothing but success so far.
Ilyarin2009-08-22 10:10:28
Unknown2009-08-22 14:41:10
I'm trying to figure out a way to make the numpad in MUSH also work for piloting.
My general idea is to make the simplified directions (IE: "s" for south, "NW" for northwest) as aliases for standard moving, but if variable piloting=1 do the command for piloting that direction.
I could do it in Java, as I'm familiar with it, but not LUA (which is what AG is written in I think).
My general idea is to make the simplified directions (IE: "s" for south, "NW" for northwest) as aliases for standard moving, but if variable piloting=1 do the command for piloting that direction.
I could do it in Java, as I'm familiar with it, but not LUA (which is what AG is written in I think).
Vathael2009-08-22 14:59:12
what I was going to do is make a movement alias or something called "movement" and then in that alias run a little script like:
if GetVariable("piloting") == "1" then
Send("pilot steer" .. %1)
else
Send(%1)
end
or however that works in Lua. Seems like that is right though. Then in the numpad do like movement n and make an alias to change your variable on/off
if GetVariable("piloting") == "1" then
Send("pilot steer" .. %1)
else
Send(%1)
end
or however that works in Lua. Seems like that is right though. Then in the numpad do like movement n and make an alias to change your variable on/off