Mudlet Empath

by vankara

Back to Mechanic's Corner.

vankara2011-12-08 17:24:20
I'm looking for an empath system for mudlet. I got Rampart's from the plugins thread, but it doesn't seem to be working at all for me. Currently I'm just using a bunch of aliases, and it works, but I would prefer something a little easier for me. As well as something that would announce where slivven are. I'm completely new to coding in mudlet, but am willing to learn that, so if someone just wants to help me figure out what I need to know how to do to set that up it would work out as well.
Unknown2011-12-08 17:48:37
Yeah, that was a small project that I never ended up finishing, I am afraid.

That said, a number of people are using the code which they fixed up personally. I am sure somebody out there will offer a working version.

I'll get round to finishing it at some day. Sadly, it's not on my list of priorities right now.
Unknown2011-12-09 18:54:40
I don't have a full system either. Also using aliases. (Still working on a set of triggers to grab modules for the aliaes.)

Here's the triggers I do have. Download attached and feel free to modify
- grid repair hull: repairs the hull when aetherbeasts attack; doesn't have lines for aetherships attacking.
- check: brings up grid modules when someone says, "Check" over the ship aether
- parasite: when the grid modules list is brought up, it'll call out slivven at module id (and person, if someone's locked in there)

Upload failed. See Pastebin. Scroll down to raw data. Copy-paste into textpad, save as ".xml" Import as usual into Mudlet.
vankara2011-12-09 19:38:39
I appreciate it, Xikue. That should give me an idea on what to do to start work on my own, as well as take pressure off of me a little while I do that.
Unknown2011-12-09 20:05:26
Well, if triggers are all you need....

Aetherprompt:

^\\


Modules:

^\\"(+)(\\d+)\\"\\s+(+)\\s+\\d+\\%\\s+\\/\\s+(+) damage( \\+\\])?( PARASITE!)?$
vankara2011-12-09 23:55:59
It's not just triggers, though those are certainly helpful. It's more seeing how others do things, what commands they use, and where they go, and all. Just the triggers doesn't do me any good without knowing that to send something to the game, I need to have send("blahblah") in the code box, for instance.
Anisu2011-12-10 10:25:57
i'll add some stuff from one of my scripts here, I got them from my laptop so not sure if it is a bug free edition or not.

Manual heal

function aethercraftmanualheal(aethermanual)
aethermanual = string.lower(aethermanual)
if aethermanual == "chair" then
send("grid repair module " .. aethercraft_chairID)
elseif aethermanual == "grid" then
send("grid repair module " .. aethercraft_gridID)
elseif aethermanual == "tur1" then
send("grid repair module " .. aethercraft_turretID1)
elseif aethermanual == "tur2" then
send("grid repair module " .. aethercraft_turretID2)
elseif aethermanual == "tur3" then
send("grid repair module " .. aethercraft_turretID3)
elseif aethermanual == "orb" then
send("grid repair module " .. aethercraft_orbID)
elseif aethermanual == "any" then
send("grid repair module")
else
cecho("possible variables are: chair, grid, tur1, tur2, tur3, orb, any.\\nTo cure the hull just use gheal.\\nCollectors are intentionally not added here, any will send without specifying the module\\n")
end
end


Autoheal

function aethercraftautoheal()
if aethercraft_docked == false then
if aethercraft_shocked == true and tonumber(aethercraft_skill) >= 28 then
send("grid clarity " .. aethercraft_chairID)
aethercraft_shocked = false
elseif aethercraft_chairDamage == 5 and tonumber(aethercraft_skill) >= 28 and tonumber(aethercraft_currentpower) >= 5 then
send("grid regenerate " .. aethercraft_chairID)
elseif tonumber(aethercraft_currenthull) < (2* tonumber(aethercraft_maxhull) / 3) then
send ("grid repair hull")
elseif aethercraft_chairDamage == 4 then
send("grid repair module " .. aethercraft_chairID)
send("grid modules")
elseif aethercraft_gridDamage == 4 then
send("grid repair module " .. aethercraft_gridID)
send("grid modules")
elseif aethercraft_chairDamage == 3 then
send("grid repair module " .. aethercraft_chairID)
send("grid modules")
elseif aethercraft_gridDamage == 3 then
send("grid repair module " .. aethercraft_gridID)
send("grid modules")
elseif aethercraft_chairDamage == 2 then
send("grid repair module " .. aethercraft_chairID)
send("grid modules")
elseif aethercraft_gridDamage == 2 then
send("grid repair module " .. aethercraft_gridID)
send("grid modules")
elseif tonumber(aethercraft_currenthull) < tonumber(aethercraft_maxhull) then
send("grid repair hull")
elseif aethercraft_chairDamage == 1 then
send("grid repair module " .. aethercraft_chairID)
send("grid modules")
elseif aethercraft_gridDamage == 1 then
send("grid repair module " .. aethercraft_gridID)
send("grid modules")
elseif aethercraft_turretDamage1 == 5 and tonumber(aethercraft_skill) >= 28 and tonumber(aethercraft_currentpower) >= 5 then
send("grid regenerate " .. aethercraft_turretID1)
send("grid modules")
elseif aethercraft_turretDamage2 == 5 and tonumber(aethercraft_skill) >= 28 and tonumber(aethercraft_currentpower) >= 5 then
send("grid regenerate " .. aethercraft_turretID2)
send("grid modules")
elseif aethercraft_turretDamage3 == 5 and tonumber(aethercraft_skill) >= 28 and tonumber(aethercraft_currentpower) >= 5 then
send("grid regenerate " .. aethercraft_turretID3)
send("grid modules")
elseif 0 < tonumber(aethercraft_turretDamage1) and tonumber(aethercraft_turretDamage1) < 5 then
send("grid repair module " .. aethercraft_turretID1)
send("grid modules")
elseif 0 < tonumber(aethercraft_turretDamage2) and tonumber(aethercraft_turretDamage2) < 5 then
send("grid repair module " .. aethercraft_turretID2)
send("grid modules")
elseif 0 < tonumber(aethercraft_turretDamage3) and tonumber(aethercraft_turretDamage3) < 5 then
send("grid repair module " .. aethercraft_turretID3)
send("grid modules")
elseif aethercraft_orbDamage == 5 and tonumber(aethercraft_skill) >= 28 and tonumber(aethercraft_currentpower) >= 5 then
send("grid regenerate " .. aethercraft_orbID)
send("grid modules")
elseif 0 < tonumber(aethercraft_orbDamage) and tonumber(aethercraft_orbDamage) < 5 then
send("grid repair module " .. aethercraft_orbID)
send("grid modules")
else
local aetherhelp = 1
aethercraft_founddamage = false
while (aetherhelp <= tonumber(aethercraft_maxcol) and aethercraft_founddamage == false) do
if tonumber(aethercraft_collectorDamage) > 0 then
aethercraft_founddamage = true
send("grid repair module " .. aethercraft_collectorID)
send("grid modules")
end
aetherhelp = aetherhelp + 1
end
if aethercraft_founddamage == false and aethercraft_screech == false and tonumber(aethercraft_skill) >= 24 then
send("grid screech on")
send("ship status")
end
end
end
end


Utility stuff required for the other two

function aethercraftskillcheck()
if aethercraft_skilltrigger == nil then
aethercraft_skilltrigger = {}
else
for k,v in ipairs(aethercraft_skilltrigger) do
killTrigger(aethercraft_skilltrigger)
aethercraft_skilltrigger = nil
end
aethercraft_skilltrigger = {}
end
if aethercraft_skill == nil then
aethercraft_skill = 0
end
table.insert(aethercraft_skilltrigger,tempTrigger("Channel Access a ship's crew communication channel.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Aethercraft Basic use of a command chair.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Empathy Basic use of the empathic grid.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Battle Basic use of a battle turret.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Offerings Give offerings of aetheric essence to the gods.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Armada Join into an armada of ships.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Interlink Include non-crew on the ship channel.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Targeting Attack specific modules.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Ram Ram and board enemy ships.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Siphon Gather power from aether vortices.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Modules Directly heal damaged modules.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Scoop Gather glaetherial dust.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Trade Exchange goods with gnome trading ships.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Worldscan Scan the worlds for signs of constructs.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Forcefield Enhanced protection while exploring.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Transverse Travel through dimensional fissures.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("EnergyLink Extract energy from collectors.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Gliding Glide carefree through the aethers.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Trail Follow a ship without its permission.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Analyze Examine other ships or aetherbeasts.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Distribution Distribute power to and from modules.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Cadet Midlevel piloting maneuvers.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Rupture Create ruptures in aetherspace.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Steward Midlevel communication skills.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Tunnel Enter a vortex and jump at will.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Bosun Midlevel turret attacks.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Astralsight Sense other algontherine ships.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Purser Midlevel empathic grid functions.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("TurretSiphon Siphon energy from a shieldless enemy.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("ThirdMate Intermediate pilot maneuvers.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Scan Find all non-cloaked ships in same environment.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("SecondMate Advanced turret attacks.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Flashpoint Create flashpoints to aid in navigation.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("FirstMate Advanced empathic grid functions.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Shock Briefly paralyze ship or aetherbeast.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Captain Advanced piloting maneuvers.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Spiral Dodge all hits for a limited time.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Resonance Create an aura to hide the ship from aetherbeasts.",]))
table.insert(aethercraft_skilltrigger,tempTrigger("Clarionblast Blow up modules on enemy ship.",]))
table.insert(aethercraft_skilltrigger,tempTrigger(],]))
send("ab aethercraft")
end
function aethercraftskillterminate()
if aethercraft_skilltrigger ~= nil then
for m,n in ipairs(aethercraft_skilltrigger) do
killTrigger(aethercraft_skilltrigger)
aethercraft_skilltrigger = nil
end
end
cecho("\\n" .. aethercraft_skilltrigger)
cecho("\\nAethercraft skill level: " .. aethercraft_skill)
end
function aethercraftgeneralactivation()
aethercraftgeneralterminate()
table.insert(aethercraft_generaltrigger,tempRegexTrigger(], ]))
table.insert(aethercraft_generaltrigger,tempRegexTrigger(],]))
table.insert(aethercraft_generaltrigger,tempRegexTrigger(], ]))
table.insert(aethercraft_generaltrigger,tempRegexTrigger(], ]))
table.insert(aethercraft_generaltrigger,tempRegexTrigger(], ]))
table.insert(aethercraft_generaltrigger,tempRegexTrigger(],]))
table.insert(aethercraft_generaltrigger,tempRegexTrigger(],]))
table.insert(aethercraft_generaltrigger,tempRegexTrigger(],]))
table.insert(aethercraft_generaltrigger,tempTrigger("With a long, slow blink, you allow your mind to drift free from the ship",]))
table.insert(aethercraft_generaltrigger,tempRegexTrigger(],) == "on" then aethercraft_forcefield = true else aethercraft_forcefield = false end]]))
end
function aethercraftgeneralterminate()
aethercraftgridterminate()
--aethercraftturretterminate()
if aethercraft_generaltrigger == nil then
aethercraft_generaltrigger = {}
else
for m,n in ipairs(aethercraft_generaltrigger) do
killTrigger(aethercraft_generaltrigger)
aethercraft_generaltrigger = nil
end
aethercraft_generaltrigger = {}
end
end
function aethercraftgridpreperation()
aethercraftgridterminate()
aethercraft_chairID = "0"
aethercraft_chairPower = 100
aethercraft_chairDamage = 0
aethercraft_gridID = "0"
aethercraft_gridPower = 100
aethercraft_orbDamage = 0
aethercraft_orbPower = 100
aethercraft_orbDamage = 0
aethercraft_turretID1 = "0"
aethercraft_turretPower1 = 100
aethercraft_turretDamage1 = 0
aethercraft_turretID2 = "0"
aethercraft_turretPower2 = 100
aethercraft_turretDamage2 = 0
aethercraft_turretID3 = "0"
aethercraft_turretPower3 = 100
aethercraft_turretDamage3 = 0
aethercraft_collectorDamage = {}
aethercraft_collectorID = {}
aethercraft_maxcol = 0
aethercraft_maxhull = 0
aethercraft_currenthull = 0
aethercraft_turretcount = 0
aethercraft_slivvenreport = false
aethercraft_screech = false
if aethercraft_autoempath == nil then
aethercraft_autoempath = false
end
aethercraftgridactivation()
send("grid modules")
send("ship look")
send("ship status")
end
function aethercraftaemp()
if aethercraft_autoempath == false then
aethercraft_autoempath = true
cecho("Automatic empathing enabled")
else
aethercraft_autoempath = false
cecho("Automatic empathing disabled")
end
end
function aethercraftgridactivation()
table.insert(aethercraft_gridtrigger,tempRegexTrigger()?.*PARASITE\\!.*$]],~=nil then slivvencheck(matches,matches) else slivvencheck(matches,"unmanned") end]]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],, matches, matches)]]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],, matches, matches)]]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],, matches, matches)]]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],, matches, matches)]]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],, matches)]]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],]))
table.insert(aethercraft_gridalias,tempAlias("^aemp$",]))
table.insert(aethercraft_gridalias,tempAlias("^undocked$", ]))
table.insert(aethercraft_gridalias,tempAlias("^gheal$", ]))
table.insert(aethercraft_gridalias,tempAlias("^gheal (.+)$", )]]))
table.insert(aethercraft_gridalias,tempAlias("^aheal$",]))
table.insert(aethercraft_gridalias,tempAlias("^gridreport$",]))
table.insert(aethercraft_gridalias,tempAlias(+) (+)$]], , matches, matches)]]))
table.insert(aethercraft_gridalias,tempAlias("^slivvcheck$",]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],]))
table.insert(aethercraft_gridtrigger,tempRegexTrigger(],]))
end
function slivvencheck(slivmod, modlock)
echo ("slivvencheck is working")
if modlock == "unmanned" then
if slivven == "No slivven detected." then
slivven = "Slivven detected at unmanned " .. slivmod
else
slivven = slivven .. ", unmanned " .. slivmod
end
else
if slivven == "No slivven detected." then
slivven = "Slivven detected at " .. modlock .. " (" .. slivmod .. ")"
else
slivven = slivven .. ", " .. modlock .. " (" .. slivmod .. ")"
end
end
end
function aethercraftmoduletranslate(module)
if module == "chair" then
return aethercraft_chairID
elseif module == "grid" then
return aethercraft_gridID
elseif module == "tur1" then
return aethercraft_turretID1
elseif module == "tur2" then
return aethercraft_turretID2
elseif module == "tur3" then
return aethercraft_turretID3
elseif module == "orb" then
return aethercraft_orbID
else
return "incorrect"
end
end
function aethercraftpowertransfer(modpower, modfrom, modto)
modfrom = aethercraftmoduletranslate(modfrom)
modto = aethercraftmoduletranslate(modto)
if modfrom ~= "incorrect" and modto ~= "incorrect" then
send("GRID DISTRIBUTE " .. modpower .. " FROM " .. modfrom .. " TO " .. modto)
else
cecho("Incorrect module: usuable modules are: chair, grid, tur1, tur2, tur3 and orb\\n")
end

end
function aethercraftgridshow()
cecho("\\nAethercraft Grid Report\\n")
cecho("===============================\\n")
cecho(" Hull: " .. aethercraft_currenthull .. "/" .. aethercraft_maxhull .. "\\n")
cecho("\\n Module ID Power Damage\\n-------------------------------\\n")
cecho(" Chair : " .. string.format("%8s", aethercraft_chairID) .. string.format("%5s", aethercraft_chairPower) .. " " .. aethercraft_chairDamage .. "\\n")
cecho(" Grid : " .. string.format("%8s", aethercraft_gridID) .. string.format("%5s", aethercraft_gridPower) .. " " .. aethercraft_gridDamage .. "\\n")
cecho(" Turret1: " .. string.format("%8s", aethercraft_turretID1) .. string.format("%5s", aethercraft_turretPower1) .. " " .. aethercraft_turretDamage1 .. "\\n")
cecho(" Turret2: " .. string.format("%8s", aethercraft_turretID2) .. string.format("%5s", aethercraft_turretPower2) .. " " .. aethercraft_turretDamage2 .. "\\n")
cecho(" Turret3: " .. string.format("%8s", aethercraft_turretID3) .. string.format("%5s", aethercraft_turretPower3) .. " " .. aethercraft_turretDamage3 .. "\\n")
cecho(" Orb : " .. string.format("%8s", aethercraft_orbID) .. string.format("%5s", aethercraft_orbPower) .. " " .. aethercraft_orbDamage .. "\\n")
aethershow = 0
while aethershow < aethercraft_maxcol do
aethershow = aethershow + 1
cecho(" Col" .. aethershow .. " : " .. string.format("%8s", aethercraft_collectorID) .. string.format("%5s", " ") .. " " .. aethercraft_collectorDamage .. "\\n")
end
cecho("-------------------------------\\n")
if aethercraft_screech == false then
aethershowscreech = "Off"
elseif aethercraft_screech == true then
aethershowscreech = "On"
else
aethershowscreech = "Bugged"
end
if aethercraft_autoempath == false then
aethershowempath = "Off"
elseif aethercraft_autoempath == true then
aethershowempath = "On"
else
aethershowempath = "Bugged"
end
if aethercraft_docked == false then
aethershowdocked = "No"
elseif aethercraft_docked == true then
aethershowdocked = "Yes"
else
aethershowdocked = "Bugged"
end
if aethercraft_balance == false then
aethershowbalance = "No"
elseif aethercraft_balance == true then
aethershowbalance = "Yes"
else
aethershowbalance = "Bugged"
end
cecho(" Screech: " .. aethershowscreech .. "\\n")
cecho(" Autoemp: " .. aethershowempath .. "\\n")
cecho(" Docked : " .. aethershowdocked .. "\\n")
cecho(" Balance: " .. aethershowbalance .. "\\n")
cecho("-------------------------------\\n")
end
function aethercraftdamagetranslate(translatedamage)
if translatedamage == "no damage" then
return 0
elseif translatedamage == "light damage" then
return 1
elseif translatedamage == "moderate damage" then
return 2
elseif translatedamage == "heavy damage" then
return 3
elseif translatedamage == "critical damage" then
return 4
elseif translatedamage == "blown up!" then
return 5
else
cecho("\\nThere is a problem with damage matching\\n")
return 0
end
end
function aethercraftModuleChair(chairID,chairPower,chairDamage)
if slivvenstage == "uncaptured" then
slivvenstage = "captured"
end
aethercraft_chairID = chairID
aethercraft_chairPower = chairPower
aethercraft_chairDamage = aethercraftdamagetranslate(chairDamage)
aethercraft_turretcount = 0
aethercraft_collectorcount = 0
echo("\\nyap" .. aethercraft_chairID)
end
function aethercraftModuleGrid(gridID,gridPower,gridDamage)
aethercraft_gridID = gridID
aethercraft_gridPower = gridPower
aethercraft_gridDamage = aethercraftdamagetranslate(gridDamage)
end
function aethercraftModuleOrb(orbID, orbPower, orbDamage)
aethercraft_orbID = orbID
aethercraft_orbPower = orbPower
aethercraft_orbDamage = aethercraftdamagetranslate(orbDamage)
end
function aethercraftModuleTurret(turretID, turretPower, turretDamage)
if aethercraft_turretcount == 0 then
aethercraft_turretID1 = turretID
aethercraft_turretPower1 = turretPower
aethercraft_turretDamage1 = aethercraftdamagetranslate(turretDamage)
aethercraft_turretcount = 1
elseif aethercraft_turretcount == 1 then
aethercraft_turretID2 = turretID
aethercraft_turretPower2 = turretPower
aethercraft_turretDamage2 = aethercraftdamagetranslate(turretDamage)
aethercraft_turretcount = 2
elseif aethercraft_turretcount == 2 then
aethercraft_turretID3 = turretID
aethercraft_turretPower3 = turretPower
aethercraft_turretDamage3 = aethercraftdamagetranslate(turretDamage)
aethercraft_turretcount = 3
else
cecho("\\nTo many turrets, TO MANY TURRETS\\n")
end
end
function aethercraftModuleCollector(collectorID, collectorDamage)
aethercraft_collectorcount = aethercraft_collectorcount + 1
aethercraft_collectorID = collectorID
aethercraft_collectorDamage = aethercraftdamagetranslate(collectorDamage)
if aethercraft_maxcol < aethercraft_collectorcount then
aethercraft_maxcol = aethercraft_collectorcount
end
end
function aethercraftgridterminate()
if aethercraft_gridtrigger == nil then
aethercraft_gridtrigger = {}
else
for k,v in ipairs(aethercraft_gridtrigger) do
killTrigger(aethercraft_gridtrigger)
aethercraft_gridtrigger = nil
end
end
if aethercraft_gridalias == nil then
aethercraft_gridalias = {}
else
for i,s in ipairs(aethercraft_gridalias) do
killAlias(aethercraft_gridalias)
aethercraft_gridalias = nil
end
end
aethercraft_chairID = nil
aethercraft_chairPower = nil
aethercraft_chairDamage = nil
aethercraft_gridID = nil
aethercraft_gridPower = nil
aethercraft_gridDamage = nil
aethercraft_turretID1 = nil
aethercraft_turretPower1 = nil
aethercraft_turretDamage1 = nil
aethercraft_turretID2 = nil
aethercraft_turretPower2 = nil
aethercraft_turretDamage2 = nil
aethercraft_turretID3 = nil
aethercraft_turretPower3 = nil
aethercraft_turretDamage3 = nil
aethercraft_collectorDamage = nil
aethercraft_collectorID = nil
aethercraft_maxcol = nil
aethercraft_collectorcount = nil
aethercraft_turretcount = nil
end

Unknown2011-12-10 12:52:10
Geez, Anisu!

Grab the data from the GMCP skill table at least. :P
Anisu2011-12-10 14:13:47
Draylor:

Geez, Anisu!

Grab the data from the GMCP skill table at least. :P

Mudlet didn't have GMCP support when I made that script. Not that I would change scripts unless there is a compelling reason to, and gmcp isn't a compelling reason for me.
Unknown2011-12-10 14:31:54
GMCP is the most compelling reason I've ever had to change any script.
Anisu2011-12-10 14:49:40
Zarquan:

GMCP is the most compelling reason I've ever had to change any script.

I only update things for the following reasons:
- The old is causing errors
- I want added functionality that relates to this part of the script
- It would significantly improve my play experience to do so
- I am going to distribute a working plugin to people (and even then I might not bother depending on the people)

Since in the last 6 rl months I was an empath for a total number of 5 hours and none of the above are true. No GMCP isn't compelling enough on its own.
Unknown2011-12-10 16:09:43
How can GMCP be used for empathing (aside from checking available abilities)?
Unknown2011-12-10 16:57:15
Just that, really.

Oh, and aetherwill.
vankara2011-12-10 17:06:32
Just to be sure I'm understanding any of this... Anisu, those utility scripts of yours won't work on their own, right? I have to create triggers or aliases to fire the scripts. For example, I could create one based off the prompt that has aethercraftautoheal() in the code box to make it fire every time the prompt came up. That's not necessarily what I'm going to do, since I think it's more important I learn how to do this stuff myself, but I wanted to make sure I didn't miss something in there that tells it when to fire the script and all.
Anisu2011-12-10 17:33:57
vankara:

Just to be sure I'm understanding any of this... Anisu, those utility scripts of yours won't work on their own, right? I have to create triggers or aliases to fire the scripts. For example, I could create one based off the prompt that has aethercraftautoheal() in the code box to make it fire every time the prompt came up. That's not necessarily what I'm going to do, since I think it's more important I learn how to do this stuff myself, but I wanted to make sure I didn't miss something in there that tells it when to fire the script and all.

I have 2 triggers outside the ones created by the script. One for the ship prompt and one for locking in to the grid.

prompt has this code in it:

aethercraft_currenthull=matches
aethercraft_currentpower=matches
aethercraft_currentwillpower=matches
if matches == "x" then
aethercraft_balance = true
else
aethercraft_balance = false
end
if aethercraft_modulelocked == "collector" and aethercraft_autosiphon == true then
cecho(" asiph")
end
if aethercraft_modulelocked == "turret" and aethercraft_Autofire == true then
cecho(" afire")
end
if aethercraft_autotarget then
cecho(" atar")
end
if aethercraft_calling then
cecho(" acall")
end
if aethercraft_modulelocked == "grid" then
if slivven ~= "No slivven detected." then
if slivvengoaround == false or slivvengoaround == nil then
slivvengoaround = true
tempTimer( 5.0, ] )
end
cecho(" Slivven")
else
slivvengoaround = false
end
if slivvenstage == "captured" then
send("shipt " .. slivven)
slivvenstage = "done"
end
if tonumber(aethercraft_currenthull) > tonumber(aethercraft_maxhull) then
aethercraft_maxhull = aethercraft_currenthull
end
if aethercraft_autoempath == true then
cecho(" Autoemp")
if aethercraft_balance == true then
aethercraftautoheal()
end
end
end
if aethercraft_docked == true then
cecho(" DOCKED")
end
aethercraftcall()

and locking a module has this code in it:

aethercraft_modulelocked = "grid"
aethercraft_balance = false
if aethercraft_skill == nil then
aethercraftskillcheck()
end
aethercraftgeneralactivation()
aethercraftgridpreperation()

Also an alias to manually initialize the empath stuff and an alias to manually disengage empath stuff.

And yeah best you make your own as it makes it easier to change stuff on the fly.
vankara2011-12-10 18:04:28
All right, thank you all! I believe I can pull everything here apart enough to figure out how to write something up. Something that works better than an alias that just sends repair commands in order of priority with the fully healed line gagged, and manual slivven calling.