Migrated the Combateer scripts over to new Actions system
Also added a few quality-of-life aliases and triggers to the overall system.
This commit is contained in:
parent
69fff893ee
commit
e5cfb014de
1 changed files with 416 additions and 225 deletions
641
Dreadnought.xml
641
Dreadnought.xml
|
@ -103,7 +103,7 @@ send("config aethermap off", false)
|
||||||
|
|
||||||
local reset = dreadnought.reset.empath()
|
local reset = dreadnought.reset.empath()
|
||||||
dreadnought.aetherbeastsTotal = reset.aetherbeastsTotal
|
dreadnought.aetherbeastsTotal = reset.aetherbeastsTotal
|
||||||
dreadnought.currentModule = matches[2]
|
dreadnought.currentModule = "grid"
|
||||||
dreadnought.empath = reset.empath
|
dreadnought.empath = reset.empath
|
||||||
|
|
||||||
sendGMCP([[Char.Skills.Get {"group":"aethercraft"}]])
|
sendGMCP([[Char.Skills.Get {"group":"aethercraft"}]])
|
||||||
|
@ -164,14 +164,16 @@ enableTrigger("Targetting - Callout")
|
||||||
send("config shipsight 0", false)
|
send("config shipsight 0", false)
|
||||||
send("config aethermap off", false)
|
send("config aethermap off", false)
|
||||||
|
|
||||||
dreadnought.currentModule = matches[2]
|
local reset = dreadnought.reset.combateer()
|
||||||
|
dreadnought.aetherbeastsTotal = reset.aetherbeastsTotal
|
||||||
sendGMCP([[Char.Skills.Get {"group":"aethercraft"}]])
|
dreadnought.currentModule = "turret"
|
||||||
send("\n")
|
dreadnought.combateer = reset.combateer
|
||||||
deleteLineP()
|
|
||||||
|
|
||||||
enableTrigger("Turret Setup")
|
enableTrigger("Turret Setup")
|
||||||
send("p turret", false)</script>
|
send("p turret", false)
|
||||||
|
|
||||||
|
sendGMCP([[Char.Skills.Get {"group":"aethercraft"}]])
|
||||||
|
send("\n")</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>39</conditonLineDelta>
|
<conditonLineDelta>39</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -183,10 +185,10 @@ send("p turret", false)</script>
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
<regexCodeList>
|
<regexCodeList>
|
||||||
<string>^You step up to a battle (\w+), locking yourself into the module and linking your mind to the controls of the ship\. After a moment, you begin to sense your command of the module in your own brain\.$</string>
|
<string>You step up to a battle turret, locking yourself into the module and linking your mind to the controls of the ship. After a moment, you begin to sense your command of the module in your own brain.</string>
|
||||||
</regexCodeList>
|
</regexCodeList>
|
||||||
<regexCodePropertyList>
|
<regexCodePropertyList>
|
||||||
<integer>1</integer>
|
<integer>3</integer>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
@ -198,7 +200,10 @@ disableTrigger("Targetting - Callout")
|
||||||
send("config shipsight 0", false)
|
send("config shipsight 0", false)
|
||||||
send("config aethermap off", false)
|
send("config aethermap off", false)
|
||||||
|
|
||||||
dreadnought.currentModule = ""</script>
|
local reset = dreadnought.reset.combateer()
|
||||||
|
dreadnought.aetherbeastsTotal = reset.aetherbeastsTotal
|
||||||
|
dreadnought.currentModule = matches[2]
|
||||||
|
dreadnought.combateer = reset.combateer</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -511,12 +516,10 @@ end
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
<regexCodeList>
|
<regexCodeList>
|
||||||
<string>^(?:\w+\s){3}suddenly explodes\!$</string>
|
<string>^(?:\w+(?:\-\w+)?\s){3}suddenly explodes\!$</string>
|
||||||
<string>A six-headed scyllus suddenly explodes!</string>
|
|
||||||
</regexCodeList>
|
</regexCodeList>
|
||||||
<regexCodePropertyList>
|
<regexCodePropertyList>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<integer>3</integer>
|
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
@ -572,7 +575,7 @@ end
|
||||||
<name>Shockwave Timer</name>
|
<name>Shockwave Timer</name>
|
||||||
<script>table.insert(dreadnought.pilot.shockwaveTimers, tempTimer(3420, function () -- Fire after 57 minutes
|
<script>table.insert(dreadnought.pilot.shockwaveTimers, tempTimer(3420, function () -- Fire after 57 minutes
|
||||||
flowerbox("red", "YOUR SHOCKWAVES ARE ABOUT TO EXPIRE!!")
|
flowerbox("red", "YOUR SHOCKWAVES ARE ABOUT TO EXPIRE!!")
|
||||||
send("shipt The shockwaves are about to expire. We'll stop and collect the dust until then.")
|
send("shipt The shockwaves are about to expire. We'll stop and collect the dust until then.", false)
|
||||||
killTimer(table.remove(dreadnought.pilot.shockwaveTimers, 1))
|
killTimer(table.remove(dreadnought.pilot.shockwaveTimers, 1))
|
||||||
dreadnought.pilot.flags.siphonCallout = false
|
dreadnought.pilot.flags.siphonCallout = false
|
||||||
disableTrigger("Siphon Callout")
|
disableTrigger("Siphon Callout")
|
||||||
|
@ -623,26 +626,6 @@ resetFormat()</script>
|
||||||
<integer>3</integer>
|
<integer>3</integer>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>Gnome traders</name>
|
|
||||||
<script>send("pilot steer " ..matches[2])</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>39</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>glides off towards the (\w+)\.$</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
<TriggerGroup isActive="no" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<TriggerGroup isActive="no" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Empath</name>
|
<name>Empath</name>
|
||||||
|
@ -907,7 +890,7 @@ dreadnought.repairShip(dreadnought.actions)</script>
|
||||||
<regexCodePropertyList/>
|
<regexCodePropertyList/>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Call</name>
|
<name>Call</name>
|
||||||
<script>if dreadnought.empath.flags.haveClarity then
|
<script>if dreadnought.empath.skills.Purser then
|
||||||
dreadnought.heap.insert(dreadnought.actions,
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
dreadnought.action("clarity", 4, "grid clarity " .. dreadnought.empath.modules.chair))
|
dreadnought.action("clarity", 4, "grid clarity " .. dreadnought.empath.modules.chair))
|
||||||
else
|
else
|
||||||
|
@ -932,7 +915,7 @@ end</script>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Emergency</name>
|
<name>Emergency</name>
|
||||||
<script>if dreadnought.empath.flags.haveClarity then
|
<script>if dreadnought.empath.skills.Purser then
|
||||||
dreadnought.heap.insert(dreadnought.actions,
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
dreadnought.action("emergency clarity", 1, "grid clarity " .. dreadnought.empath.modules.chair))
|
dreadnought.action("emergency clarity", 1, "grid clarity " .. dreadnought.empath.modules.chair))
|
||||||
else
|
else
|
||||||
|
@ -985,7 +968,7 @@ action.postCommand()</script>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Aetherbeast Dead</name>
|
<name>Aetherbeast Dead</name>
|
||||||
<script>if dreadnought.empath.flags.haveClarity then
|
<script>if dreadnought.empath.skills.Purser then
|
||||||
dreadnought.heap.insert(dreadnought.actions,
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
dreadnought.action("emergency clarity", 1, "grid clarity " .. dreadnought.empath.modules.chair))
|
dreadnought.action("emergency clarity", 1, "grid clarity " .. dreadnought.empath.modules.chair))
|
||||||
end</script>
|
end</script>
|
||||||
|
@ -1007,27 +990,6 @@ end</script>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>Slivven Check</name>
|
|
||||||
<script>dreadnought.empath.flags.checkSlivven = true
|
|
||||||
send("grid modules", false)</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>^\(Ship\): \w+ (?:say|says), "Check\."$</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Grid Setup</name>
|
<name>Grid Setup</name>
|
||||||
<script>if matches[2] == "chair" then
|
<script>if matches[2] == "chair" then
|
||||||
|
@ -1084,6 +1046,120 @@ dmsg("The empathic grid is set up and ready for your control.")</scrip
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
|
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Launch Setup</name>
|
||||||
|
<script></script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList/>
|
||||||
|
<regexCodePropertyList/>
|
||||||
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Launch</name>
|
||||||
|
<script>if dreadnought.empath.skills.FirstMate then
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("planarbond", 1, "grid planarbond"))
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("covey", 1, "grid covey"))
|
||||||
|
end</script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList>
|
||||||
|
<string>^(?:\w+\s?)+ into the aetherways\.$</string>
|
||||||
|
</regexCodeList>
|
||||||
|
<regexCodePropertyList>
|
||||||
|
<integer>1</integer>
|
||||||
|
</regexCodePropertyList>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Covey</name>
|
||||||
|
<script>local action = dreadnought.heap.head(dreadnought.actions)
|
||||||
|
|
||||||
|
if action.name == "covey" then
|
||||||
|
dreadnought.heap.extract(dreadnought.actions)
|
||||||
|
end
|
||||||
|
|
||||||
|
action.postCommand()</script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList>
|
||||||
|
<string>^You point out to (?:\w+\s?)+ that \w+ has a covey\.$</string>
|
||||||
|
</regexCodeList>
|
||||||
|
<regexCodePropertyList>
|
||||||
|
<integer>1</integer>
|
||||||
|
</regexCodePropertyList>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Planarbond</name>
|
||||||
|
<script>local action = dreadnought.heap.head(dreadnought.actions)
|
||||||
|
|
||||||
|
if action.name == "planarbond" then
|
||||||
|
dreadnought.heap.extract(dreadnought.actions)
|
||||||
|
end
|
||||||
|
|
||||||
|
action.postCommand()</script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList>
|
||||||
|
<string>^You direct (?:\w+\s?)+ to form a deep planar bond with the crew, rooting each of them to the distant aetherwaves\.$</string>
|
||||||
|
</regexCodeList>
|
||||||
|
<regexCodePropertyList>
|
||||||
|
<integer>1</integer>
|
||||||
|
</regexCodePropertyList>
|
||||||
|
</Trigger>
|
||||||
|
</TriggerGroup>
|
||||||
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Slivven Check</name>
|
||||||
|
<script>dreadnought.empath.flags.checkSlivven = true
|
||||||
|
send("grid modules", false)</script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList>
|
||||||
|
<string>^\(Ship\): \w+ (?:say|says), "Check\."$</string>
|
||||||
|
</regexCodeList>
|
||||||
|
<regexCodePropertyList>
|
||||||
|
<integer>1</integer>
|
||||||
|
</regexCodePropertyList>
|
||||||
|
</Trigger>
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
<TriggerGroup isActive="no" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<TriggerGroup isActive="no" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Combateer</name>
|
<name>Combateer</name>
|
||||||
|
@ -1100,12 +1176,12 @@ dmsg("The empathic grid is set up and ready for your control.")</scrip
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
<regexCodeList/>
|
<regexCodeList/>
|
||||||
<regexCodePropertyList/>
|
<regexCodePropertyList/>
|
||||||
<TriggerGroup isActive="no" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="yes" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<TriggerGroup isActive="no" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Turret Setup</name>
|
<name>Turret Setup</name>
|
||||||
<script></script>
|
<script></script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
<mStayOpen>13</mStayOpen>
|
<mStayOpen>10</mStayOpen>
|
||||||
<mCommand></mCommand>
|
<mCommand></mCommand>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<mFgColor>#ff0000</mFgColor>
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
@ -1181,7 +1257,10 @@ disableTrigger("Turret Setup")</script>
|
||||||
<regexCodePropertyList/>
|
<regexCodePropertyList/>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Aetherbeast Summoned</name>
|
<name>Aetherbeast Summoned</name>
|
||||||
<script>table.insert(dreadnought.combateer.targets, matches[2])
|
<script>dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("target", 3, "turret target creature " ..matches[2]))
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("fire at creature", 4, "turret fire"))
|
||||||
dreadnought.fireTurret()</script>
|
dreadnought.fireTurret()</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>99</conditonLineDelta>
|
<conditonLineDelta>99</conditonLineDelta>
|
||||||
|
@ -1204,8 +1283,12 @@ dreadnought.fireTurret()</script>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Karibidean Summoned</name>
|
<name>Karibidean Summoned</name>
|
||||||
<script>table.insert(dreadnought.combateer.targets, "karibidean")
|
<script>dreadnought.heap.insert(dreadnought.actions,
|
||||||
dreadnought.fireTurret()</script>
|
dreadnought.action("target karibidean", 5, "turret target creature karibidean"))
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("fire on karibidean", 6, "turret fire"))
|
||||||
|
|
||||||
|
dreadnought.fireTurret(dreadnought.actions)</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1241,8 +1324,26 @@ dreadnought.fireTurret()</script>
|
||||||
<regexCodePropertyList/>
|
<regexCodePropertyList/>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Targeting</name>
|
<name>Targeting</name>
|
||||||
<script>table.insert(dreadnought.combateer.targets, matches[2])
|
<script>if matches[2] ~= "" then
|
||||||
dreadnought.fireTurret()</script>
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("target ship", 1, "turret target ship " ..matches[3]))
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("fire on ship", 2, "turret fire"))
|
||||||
|
else
|
||||||
|
if matches[2] == "karibidean" then
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("target karibidean", 5, "turret target creature karibidean"))
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("fire on karibidean", 6, "turret fire"))
|
||||||
|
else
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("target creature", 3, "turret target creature " ..matches[3]))
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("fire on creature", 4, "turret fire"))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
dreadnought.fireTurret(dreadnought.actions)</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>99</conditonLineDelta>
|
<conditonLineDelta>99</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1254,8 +1355,8 @@ dreadnought.fireTurret()</script>
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
<regexCodeList>
|
<regexCodeList>
|
||||||
<string>^\(Ship\): \w+ says, "Target (\w+)\."$</string>
|
<string>^\(Ship\): \w+ (?:say|says), "Target (the aethership )?(\w+)\."$</string>
|
||||||
<string>^\(Ship\): \w+ says, "Gunners, train your sights upon the (\w+)\."$</string>
|
<string>^\(Ship\): \w+ (?:say|says), "Gunners, train your sights upon the (\w+)\."$</string>
|
||||||
</regexCodeList>
|
</regexCodeList>
|
||||||
<regexCodePropertyList>
|
<regexCodePropertyList>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
|
@ -1263,30 +1364,15 @@ dreadnought.fireTurret()</script>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>Turret Balance</name>
|
|
||||||
<script>dreadnought.balance = true
|
|
||||||
dreadnought.fireTurret()</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>39</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>A battle turret whirrs quietly, ready to be used once again.</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>3</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Target Acquired</name>
|
<name>Target Acquired</name>
|
||||||
<script>dreadnought.combateer.flags.targetAcquired = true</script>
|
<script>local action = dreadnought.heap.head(dreadnought.actions)
|
||||||
|
|
||||||
|
if action.name == "target ship" or action.name == "target creature" or action.name == "target karibidean" then
|
||||||
|
dreadnought.heap.extract(dreadnought.actions)
|
||||||
|
end
|
||||||
|
|
||||||
|
action.postCommand()</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1298,19 +1384,20 @@ dreadnought.fireTurret()</script>
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
<regexCodeList>
|
<regexCodeList>
|
||||||
<string>^You tune the weapon module to target a \w+ \w+\.$</string>
|
<string>^You tune the weapon module to target (?:a|an) (?:\w+\-?\s?)+\.$</string>
|
||||||
<string>^You tune the weapon module to target a six-headed \w+\.$</string>
|
<string>No such creature is close enough for a battle turret to get a targeting lock.</string>
|
||||||
</regexCodeList>
|
</regexCodeList>
|
||||||
<regexCodePropertyList>
|
<regexCodePropertyList>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<integer>1</integer>
|
<integer>3</integer>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Vortex</name>
|
<name>Vortex</name>
|
||||||
<script>if dreadnought.combateer.flags.canVortex then
|
<script>if dreadnought.combateer.flags.canVortex then
|
||||||
dreadnought.combateer.flags.vortexCalled = true
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
dreadnought.fireTurret()
|
dreadnought.action("vortex", 5, "turret vortex"))
|
||||||
|
dreadnought.fireTurret(dreadnought.actions)
|
||||||
end</script>
|
end</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
@ -1324,39 +1411,6 @@ end</script>
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
<regexCodeList>
|
<regexCodeList>
|
||||||
<string>^\(Ship\): \w+ says, "Vortex\."$</string>
|
<string>^\(Ship\): \w+ says, "Vortex\."$</string>
|
||||||
<string>^\(Ship\): \w+ says, "Turret vortex.\"$</string>
|
|
||||||
<string>^\(Ship\): \w+ says, "TURRET VORTEX.\"$</string>
|
|
||||||
<string>^\(Ship\): \w+ says, "Turret Vortex\."$</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
|
||||||
<integer>1</integer>
|
|
||||||
<integer>1</integer>
|
|
||||||
<integer>1</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>Targetted Vortex</name>
|
|
||||||
<script>if matches[2] == gmcp.Char.Name.name then
|
|
||||||
if dreadnought.combateer.flags.canVortex then
|
|
||||||
dreadnought.combateer.flags.vortexCalled = true
|
|
||||||
dreadnought.fireTurret()
|
|
||||||
else
|
|
||||||
send("I'm afraid this turret is unable to summon a vortex, Captain.")
|
|
||||||
end
|
|
||||||
end</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>99</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>^\(Ship\): \w+ says, \"(\w+), vortex.\"$</string>
|
|
||||||
</regexCodeList>
|
</regexCodeList>
|
||||||
<regexCodePropertyList>
|
<regexCodePropertyList>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
|
@ -1364,7 +1418,13 @@ end</script>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Vortex Fired</name>
|
<name>Vortex Fired</name>
|
||||||
<script>dreadnought.combateer.flags.vortexCalled = false</script>
|
<script>local action = dreadnought.heap.head(dreadnought.actions)
|
||||||
|
|
||||||
|
if action.name == "vortex" then
|
||||||
|
dreadnought.heap.extract(dreadnought.actions)
|
||||||
|
end
|
||||||
|
|
||||||
|
action.postCommand()</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1386,8 +1446,11 @@ end</script>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Shockwave</name>
|
<name>Shockwave</name>
|
||||||
<script>dreadnought.combateer.flags.shockwaveCalled = true
|
<script>if dreadnought.combateer.skills.Shock then
|
||||||
dreadnought.fireTurret()</script>
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("shockwave", 3, "turret shockwave"))
|
||||||
|
dreadnought.fireTurret(dreadnought.actions)
|
||||||
|
end</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>99</conditonLineDelta>
|
<conditonLineDelta>99</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1399,38 +1462,23 @@ dreadnought.fireTurret()</script>
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
<regexCodeList>
|
<regexCodeList>
|
||||||
<string>^\(Ship\): (\w+) says, \"Shockwave.\"$</string>
|
<string>^\(Ship\): \w+ says, \"Shockwave.\"$</string>
|
||||||
|
<string>^(?:\w+\s)+lacks the power to do that\.$</string>
|
||||||
</regexCodeList>
|
</regexCodeList>
|
||||||
<regexCodePropertyList>
|
<regexCodePropertyList>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>Targetted Shockwave</name>
|
|
||||||
<script>if matches[2] == gmcp.Char.Name.name then
|
|
||||||
dreadnought.combateer.flags.shockwaveCalled = true
|
|
||||||
dreadnought.fireTurret()
|
|
||||||
end</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>^\(Ship\): \w+ says, \"(\w+), shockwave.\"$</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Shockwave Fired</name>
|
<name>Shockwave Fired</name>
|
||||||
<script>dreadnought.combateer.flags.shockwaveCalled = false</script>
|
<script>local action = dreadnought.heap.head(dreadnought.actions)
|
||||||
|
|
||||||
|
if action.name == "shockwave" then
|
||||||
|
dreadnought.heap.extract(dreadnought.actions)
|
||||||
|
end
|
||||||
|
|
||||||
|
action.postCommand()</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1452,11 +1500,42 @@ end</script>
|
||||||
<integer>3</integer>
|
<integer>3</integer>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Turret Fired</name>
|
||||||
|
<script>local action = dreadnought.heap.head(dreadnought.actions)
|
||||||
|
|
||||||
|
if action.name == "fire on ship" or action.name == "fire on creature" then
|
||||||
|
action.postCommand()
|
||||||
|
end</script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList>
|
||||||
|
<string>The floor shakes as you fire a blast that slams into</string>
|
||||||
|
<string>As you attempt to operate a battle turret, it sputters and gyrates without producing a noticeable result.</string>
|
||||||
|
</regexCodeList>
|
||||||
|
<regexCodePropertyList>
|
||||||
|
<integer>2</integer>
|
||||||
|
<integer>3</integer>
|
||||||
|
</regexCodePropertyList>
|
||||||
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Beast Dies</name>
|
<name>Beast Dies</name>
|
||||||
<script>table.remove(dreadnought.combateer.targets, 1)
|
<script>local action = dreadnought.heap.head(dreadnought.actions)
|
||||||
dreadnought.combateer.flags.targetAcquired = false
|
|
||||||
dreadnought.fireTurret()</script>
|
if action.name == "fire on ship" or action.name == "fire on creature" then
|
||||||
|
dreadnought.heap.extract(dreadnought.actions)
|
||||||
|
action.postCommand()
|
||||||
|
end
|
||||||
|
|
||||||
|
dreadnought.fireTurret(dreadnought.actions)</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1476,8 +1555,14 @@ dreadnought.fireTurret()</script>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>No Target</name>
|
<name>No Target</name>
|
||||||
<script>dreadnought.combateer.flags.targetAcquired = false
|
<script>local action = dreadnought.heap.head(dreadnought.actions)
|
||||||
table.remove(dreadnought.combateer.targets, 1)</script>
|
|
||||||
|
if action.name == "fire on ship" or action.name == "fire on creature" then
|
||||||
|
dreadnought.heap.extract(dreadnought.actions)
|
||||||
|
action.postCommand()
|
||||||
|
end
|
||||||
|
|
||||||
|
dreadnought.fireTurret(dreadnought.actions)</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1500,7 +1585,7 @@ table.remove(dreadnought.combateer.targets, 1)</script>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Turret Exhaustion</name>
|
<name>Turret Exhaustion</name>
|
||||||
<script>send("shipt I'm exhausted, Captain! You should find me a replacement.")
|
<script>send("shipt I'm exhausted, Captain! You should find me a replacement.")
|
||||||
dreadnought.fireTurret()</script>
|
dreadnought.fireTurret(dreadnought.actions)</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>99</conditonLineDelta>
|
<conditonLineDelta>99</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1674,7 +1759,7 @@ end</script>
|
||||||
<regexCodePropertyList/>
|
<regexCodePropertyList/>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Siphoning Vortex</name>
|
<name>Siphoning Vortex</name>
|
||||||
<script>send("shipt Siphoned from the vortex, Captain. My collector is now filled with " ..matches[2].." energy.")</script>
|
<script>send("shipt Siphoned from the vortex, Captain. My collector is now filled with " ..matches[2].." energy.", false)</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>99</conditonLineDelta>
|
<conditonLineDelta>99</conditonLineDelta>
|
||||||
<mStayOpen>0</mStayOpen>
|
<mStayOpen>0</mStayOpen>
|
||||||
|
@ -1714,7 +1799,7 @@ end</script>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Full Collector</name>
|
<name>Full Collector</name>
|
||||||
<script>send("shipt My collector is full, Captain.")
|
<script>send("shipt My collector is full, Captain.", false)
|
||||||
disableTrigger("Siphoning - Auto")
|
disableTrigger("Siphoning - Auto")
|
||||||
disableTrigger("Siphoning - Callout")</script>
|
disableTrigger("Siphoning - Callout")</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
|
@ -1736,7 +1821,7 @@ disableTrigger("Siphoning - Callout")</script>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Exhaustion</name>
|
<name>Exhaustion</name>
|
||||||
<script>send("shipt I'm exhausted, Captain. You'll have to find a replacement for me.")
|
<script>send("shipt I'm exhausted, Captain. You'll have to find a replacement for me.", false)
|
||||||
dreadnought.siphonVortex(dreadnought.aetherbeastsTotal)</script>
|
dreadnought.siphonVortex(dreadnought.aetherbeastsTotal)</script>
|
||||||
<triggerType>0</triggerType>
|
<triggerType>0</triggerType>
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
@ -1756,6 +1841,48 @@ dreadnought.siphonVortex(dreadnought.aetherbeastsTotal)</script>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Aetherbeast Enters</name>
|
||||||
|
<script>dreadnought.aetherbeastsTotal = dreadnought.aetherbeastsTotal + 1</script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList>
|
||||||
|
<string>^Drawn by the flux of energy, (?:a|an) \w+(?:\-\w+)? \w+ suddenly wanders into the nearby area\.$</string>
|
||||||
|
</regexCodeList>
|
||||||
|
<regexCodePropertyList>
|
||||||
|
<integer>1</integer>
|
||||||
|
</regexCodePropertyList>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Aetherbeast Dies</name>
|
||||||
|
<script>if dreadnought.aetherbeastsTotal > 0 then
|
||||||
|
dreadnought.aetherbeastsTotal = dreadnought.aetherbeastsTotal - 1
|
||||||
|
end</script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>0</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList>
|
||||||
|
<string>^(?:\w+(?:\-\w+)?\s){3}suddenly explodes\!$</string>
|
||||||
|
</regexCodeList>
|
||||||
|
<regexCodePropertyList>
|
||||||
|
<integer>1</integer>
|
||||||
|
</regexCodePropertyList>
|
||||||
|
</Trigger>
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
<name>Activate/Deactivate calls</name>
|
<name>Activate/Deactivate calls</name>
|
||||||
|
@ -1927,6 +2054,26 @@ tempTimer(0.1, [[send("shipt Aye aye, Captain! Deactivating my collector&qu
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
|
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
||||||
|
<name>Gnome traders</name>
|
||||||
|
<script>send("pilot steer " ..matches[2])</script>
|
||||||
|
<triggerType>0</triggerType>
|
||||||
|
<conditonLineDelta>39</conditonLineDelta>
|
||||||
|
<mStayOpen>0</mStayOpen>
|
||||||
|
<mCommand></mCommand>
|
||||||
|
<packageName></packageName>
|
||||||
|
<mFgColor>#ff0000</mFgColor>
|
||||||
|
<mBgColor>#ffff00</mBgColor>
|
||||||
|
<mSoundFile></mSoundFile>
|
||||||
|
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
||||||
|
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
||||||
|
<regexCodeList>
|
||||||
|
<string>glides off towards the (\w+)\.$</string>
|
||||||
|
</regexCodeList>
|
||||||
|
<regexCodePropertyList>
|
||||||
|
<integer>1</integer>
|
||||||
|
</regexCodePropertyList>
|
||||||
|
</Trigger>
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
</TriggerPackage>
|
</TriggerPackage>
|
||||||
<TimerPackage/>
|
<TimerPackage/>
|
||||||
|
@ -2239,10 +2386,11 @@ end</script>
|
||||||
<Alias isActive="yes" isFolder="no">
|
<Alias isActive="yes" isFolder="no">
|
||||||
<name>Grid Repair</name>
|
<name>Grid Repair</name>
|
||||||
<script>dmsg("Repairing the ship.")
|
<script>dmsg("Repairing the ship.")
|
||||||
|
dreadnought.locked = false
|
||||||
dreadnought.repairShip(dreadnought.actions)</script>
|
dreadnought.repairShip(dreadnought.actions)</script>
|
||||||
<command></command>
|
<command></command>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<regex>^gr(?: (reset))?$</regex>
|
<regex>^gr$</regex>
|
||||||
</Alias>
|
</Alias>
|
||||||
<Alias isActive="yes" isFolder="no">
|
<Alias isActive="yes" isFolder="no">
|
||||||
<name>Slivven Check</name>
|
<name>Slivven Check</name>
|
||||||
|
@ -2255,7 +2403,7 @@ send("grid modules")</script>
|
||||||
<Alias isActive="yes" isFolder="no">
|
<Alias isActive="yes" isFolder="no">
|
||||||
<name>Clarity</name>
|
<name>Clarity</name>
|
||||||
<script>dreadnought.heap.insert(dreadnought.actions,
|
<script>dreadnought.heap.insert(dreadnought.actions,
|
||||||
action("emergency clarity", 1, "grid clarity " .. dreadnought.empath.modules.chair))
|
dreadnought.action("emergency clarity", 1, "grid clarity " .. dreadnought.empath.modules.chair))
|
||||||
dreadnought.repairShip(dreadnought.actions)</script>
|
dreadnought.repairShip(dreadnought.actions)</script>
|
||||||
<command></command>
|
<command></command>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
|
@ -2307,24 +2455,29 @@ end</script>
|
||||||
</Alias>
|
</Alias>
|
||||||
<Alias isActive="yes" isFolder="no">
|
<Alias isActive="yes" isFolder="no">
|
||||||
<name>Set Target</name>
|
<name>Set Target</name>
|
||||||
<script>if matches[2] == "reset" then
|
<script>if #matches > 2 then
|
||||||
dreadnought.combateer.targets = {}
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
dmsg("Resetting the list of targets")
|
dreadnought.action("target ship", 1, "turret target ship " ..matches[2]))
|
||||||
elseif matches[2] == "list" then
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
local msg = "Current list of targets:"
|
dreadnought.action("fire on ship", 2, "turret fire"))
|
||||||
for _,t in ipairs(dreadnought.combateer.targets) do
|
|
||||||
msg = msg .. " " .. t
|
|
||||||
end
|
|
||||||
|
|
||||||
dmsg(msg)
|
|
||||||
else
|
else
|
||||||
table.insert(dreadnought.combateer.targets, matches[2])
|
if matches[2] == "karibidean" then
|
||||||
dmsg("Adding to the list of targets: " .. matches[2])
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
dreadnought.fireTurret()
|
dreadnought.action("target karibidean", 5, "turret target creature karibidean"))
|
||||||
end</script>
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("fire on karibidean", 6, "turret fire"))
|
||||||
|
else
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("target creature", 3, "turret target creature " ..matches[2]))
|
||||||
|
dreadnought.heap.insert(dreadnought.actions,
|
||||||
|
dreadnought.action("fire on creature", 4, "turret fire"))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
dreadnought.fireTurret(dreadnought.actions)</script>
|
||||||
<command></command>
|
<command></command>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<regex>^ttar (\w+)$</regex>
|
<regex>^ttar (\w+)(?: (ship))?$</regex>
|
||||||
</Alias>
|
</Alias>
|
||||||
</AliasGroup>
|
</AliasGroup>
|
||||||
<AliasGroup isActive="no" isFolder="yes">
|
<AliasGroup isActive="no" isFolder="yes">
|
||||||
|
@ -2359,6 +2512,13 @@ end</script>
|
||||||
<regex>^smode (call|auto|off)$</regex>
|
<regex>^smode (call|auto|off)$</regex>
|
||||||
</Alias>
|
</Alias>
|
||||||
</AliasGroup>
|
</AliasGroup>
|
||||||
|
<Alias isActive="yes" isFolder="no">
|
||||||
|
<name>Ship Look</name>
|
||||||
|
<script>send("ship look", false)</script>
|
||||||
|
<command></command>
|
||||||
|
<packageName></packageName>
|
||||||
|
<regex>^sl$</regex>
|
||||||
|
</Alias>
|
||||||
<Alias isActive="yes" isFolder="no">
|
<Alias isActive="yes" isFolder="no">
|
||||||
<name>Finish Hunting</name>
|
<name>Finish Hunting</name>
|
||||||
<script>disableTrigger("Pilot")
|
<script>disableTrigger("Pilot")
|
||||||
|
@ -2368,16 +2528,18 @@ disableAlias("Pilot")
|
||||||
disableTrigger("Empath")
|
disableTrigger("Empath")
|
||||||
disableAlias("Empath")
|
disableAlias("Empath")
|
||||||
|
|
||||||
disableTrigger("Gunner")
|
disableTrigger("Combateer")
|
||||||
disableTrigger("Targetting - Auto")
|
disableTrigger("Targetting - Auto")
|
||||||
disableTrigger("Targetting - Callout")
|
disableTrigger("Targetting - Callout")
|
||||||
disableAlias("Gunner")
|
disableAlias("Combateer")
|
||||||
|
|
||||||
disableTrigger("Collector")
|
disableTrigger("Collector")
|
||||||
disableTrigger("Siphoning - Auto")
|
disableTrigger("Siphoning - Auto")
|
||||||
disableTrigger("Siphoning - Callout")
|
disableTrigger("Siphoning - Callout")
|
||||||
disableAlias("Collector")
|
disableAlias("Collector")
|
||||||
|
|
||||||
|
dreadnought.actions = dreadnought.heap.new()
|
||||||
|
|
||||||
dmsg("All Dreadnought reflexes have been disabled.")</script>
|
dmsg("All Dreadnought reflexes have been disabled.")</script>
|
||||||
<command></command>
|
<command></command>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
|
@ -2416,7 +2578,7 @@ dmsg("All Dreadnought reflexes have been disabled.")</script>
|
||||||
assert(type(x.priority) == "number")
|
assert(type(x.priority) == "number")
|
||||||
assert(type(y.priority) == "number")
|
assert(type(y.priority) == "number")
|
||||||
|
|
||||||
return x.priority >= y.priority
|
return x.priority > y.priority
|
||||||
end
|
end
|
||||||
|
|
||||||
local exch = function(h, x, y)
|
local exch = function(h, x, y)
|
||||||
|
@ -2676,8 +2838,9 @@ end</script>
|
||||||
cube = ""
|
cube = ""
|
||||||
},
|
},
|
||||||
|
|
||||||
|
skills = {},
|
||||||
|
|
||||||
flags = {
|
flags = {
|
||||||
haveClarity = false,
|
|
||||||
checkSlivven = false
|
checkSlivven = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -2703,10 +2866,9 @@ function dreadnought.reset.empath()
|
||||||
cube = ""
|
cube = ""
|
||||||
},
|
},
|
||||||
|
|
||||||
commands = heap.new(),
|
skills = {},
|
||||||
|
|
||||||
flags = {
|
flags = {
|
||||||
haveClarity = false,
|
|
||||||
checkSlivven = false
|
checkSlivven = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -2725,40 +2887,27 @@ end</script>
|
||||||
end</script>
|
end</script>
|
||||||
<eventHandlerList/>
|
<eventHandlerList/>
|
||||||
</Script>
|
</Script>
|
||||||
<Script isActive="yes" isFolder="no">
|
|
||||||
<name>Setup</name>
|
|
||||||
<packageName></packageName>
|
|
||||||
<script>function dreadnought.setup.empath()
|
|
||||||
if gmcp.Char.Skills.List.list[29] == "Purser" then
|
|
||||||
dreadnought.empath.flags.haveClarity = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
registerAnonymousEventHandler("gmcp.Char.Skills.List", "dreadnought.setup.empath")</script>
|
|
||||||
<eventHandlerList/>
|
|
||||||
</Script>
|
|
||||||
</ScriptGroup>
|
</ScriptGroup>
|
||||||
<ScriptGroup isActive="yes" isFolder="yes">
|
<ScriptGroup isActive="yes" isFolder="yes">
|
||||||
<name>Combateer</name>
|
<name>Combateer</name>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<script>dreadnought.combateer = dreadnought.combateer or {
|
<script>dreadnought.combateer = dreadnought.combateer or {
|
||||||
targets = {},
|
skills = {},
|
||||||
flags = {
|
flags = {
|
||||||
targetAcquired = false,
|
canVortex = false
|
||||||
canVortex = false,
|
|
||||||
vortexCalled = false,
|
|
||||||
shockwaveCalled = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function dreadnought.reset.combateer()
|
function dreadnought.reset.combateer()
|
||||||
return {
|
return {
|
||||||
aetherbeastsTotal = 0,
|
aetherbeastsTotal = 0,
|
||||||
|
currentModule = "",
|
||||||
|
|
||||||
combateer = {
|
combateer = {
|
||||||
targets = {},
|
skills = {},
|
||||||
|
flags = {
|
||||||
|
canVortex = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end</script>
|
end</script>
|
||||||
|
@ -2766,24 +2915,13 @@ end</script>
|
||||||
<Script isActive="yes" isFolder="no">
|
<Script isActive="yes" isFolder="no">
|
||||||
<name>Fire Turret</name>
|
<name>Fire Turret</name>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<script>function dreadnought.fireTurret()
|
<script>function dreadnought.fireTurret(actions)
|
||||||
if dreadnought.balance then
|
if actions.size > 0 then
|
||||||
if dreadnought.combateer.flags.shockwaveCalled then
|
dreadnought.heap.head(actions).command()
|
||||||
send("turret shockwave")
|
|
||||||
elseif dreadnought.combateer.flags.vortexCalled then
|
|
||||||
send("turret vortex")
|
|
||||||
else
|
|
||||||
local currentTarget = dreadnought.combateer.targets[1]
|
|
||||||
if currentTarget ~= nil then
|
|
||||||
if dreadnought.combateer.flags.targetAcquired then
|
|
||||||
send("turret fire")
|
|
||||||
else
|
|
||||||
send("turret target creature " .. currentTarget)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end</script>
|
end
|
||||||
|
|
||||||
|
</script>
|
||||||
<eventHandlerList/>
|
<eventHandlerList/>
|
||||||
</Script>
|
</Script>
|
||||||
</ScriptGroup>
|
</ScriptGroup>
|
||||||
|
@ -2797,7 +2935,7 @@ end</script>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<script>function dreadnought.siphonVortex(aetherbeastsTotal)
|
<script>function dreadnought.siphonVortex(aetherbeastsTotal)
|
||||||
if aetherbeastsTotal == 0 then
|
if aetherbeastsTotal == 0 then
|
||||||
send("siphon vortex")
|
send("siphon vortex", false)
|
||||||
else
|
else
|
||||||
send("shipt I don't think that's a good idea, Captain. There are aetherbeasts about!")
|
send("shipt I don't think that's a good idea, Captain. There are aetherbeasts about!")
|
||||||
end
|
end
|
||||||
|
@ -2810,6 +2948,55 @@ end</script>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<script></script>
|
<script></script>
|
||||||
<eventHandlerList/>
|
<eventHandlerList/>
|
||||||
|
<Script isActive="yes" isFolder="no">
|
||||||
|
<name>Skills Listener</name>
|
||||||
|
<packageName></packageName>
|
||||||
|
<script>local empathSkills = {
|
||||||
|
Empathy = true,
|
||||||
|
Armada = true,
|
||||||
|
Interlink = true,
|
||||||
|
Modules = true,
|
||||||
|
Trade = true,
|
||||||
|
Analyze = true,
|
||||||
|
Distribution = true,
|
||||||
|
Steward = true,
|
||||||
|
Astralsight = true,
|
||||||
|
Purser = true,
|
||||||
|
Scan = true,
|
||||||
|
Resonance = true
|
||||||
|
}
|
||||||
|
|
||||||
|
local combateerSkills = {
|
||||||
|
Battle = true,
|
||||||
|
Targeting = true,
|
||||||
|
Bombard = true,
|
||||||
|
Rupture = true,
|
||||||
|
Bosun = true,
|
||||||
|
TurretSiphon = true,
|
||||||
|
SecondMate = true,
|
||||||
|
Shock = true,
|
||||||
|
Clarionblast = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function dreadnought.skillsListener()
|
||||||
|
if dreadnought.currentModule == "grid" then
|
||||||
|
for i,skill in ipairs(gmcp.Char.Skills.List.list) do
|
||||||
|
if empathSkills[skill] then
|
||||||
|
dreadnought.empath.skills[skill] = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
elseif dreadnought.currentModule == "turret" then
|
||||||
|
for i,skill in ipairs(gmcp.Char.Skills.List.list) do
|
||||||
|
if combateerSkills[skill] then
|
||||||
|
dreadnought.combateer.skills[skill] = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
registerAnonymousEventHandler("gmcp.Char.Skills.List", "dreadnought.skillsListener")</script>
|
||||||
|
<eventHandlerList/>
|
||||||
|
</Script>
|
||||||
<Script isActive="yes" isFolder="no">
|
<Script isActive="yes" isFolder="no">
|
||||||
<name>Balance Listener</name>
|
<name>Balance Listener</name>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
|
@ -2817,7 +3004,9 @@ end</script>
|
||||||
if gmcp.Char.Vitals.modulebal == "1" then
|
if gmcp.Char.Vitals.modulebal == "1" then
|
||||||
dreadnought.balance = true
|
dreadnought.balance = true
|
||||||
|
|
||||||
raiseEvent("dreadnought.onFireAction", dreadnought.currentModule)
|
if not dreadnought.locked then
|
||||||
|
raiseEvent("dreadnought.onFireAction", dreadnought.currentModule)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
dreadnought.balance = false
|
dreadnought.balance = false
|
||||||
end
|
end
|
||||||
|
@ -2833,6 +3022,8 @@ registerAnonymousEventHandler("gmcp.Char.Vitals", "dreadnought.ba
|
||||||
if currentModule ~= "" and not dreadnought.locked then
|
if currentModule ~= "" and not dreadnought.locked then
|
||||||
if currentModule == "grid" then
|
if currentModule == "grid" then
|
||||||
dreadnought.repairShip(dreadnought.actions)
|
dreadnought.repairShip(dreadnought.actions)
|
||||||
|
elseif currentModule == "turret" then
|
||||||
|
dreadnought.fireTurret(dreadnought.actions)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue