Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE MudletPackage>
- <MudletPackage version="1.0">
- <TriggerPackage>
- <Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="yes" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
- <name>Grid Status Gate</name>
- <script>--Clear modules and init the status so it doesnt try to reopen the gate on new modules
- system.aetherModules = {}
- tempGridStatus = true
- if matches[5] == "no" then matches[5] = "none" end
- if matches[6] == "" or matches[6] == nil then matches[6] = "unmanned" end
- system.aetherModules[matches[2] .. matches[3]] = {moduleIdentifier = matches[3]:gsub("%s*$",""), damage = matches[5], name = matches[6]:gsub("[%[%]]","") or "unmanned", infectionStatus = matches[7] or "healthy"}
- if matches[6] ~="" and matches[6] ~="unmanned" and matches[7] then
- local infectedPerson = matches[6]:gsub("[%[%]]","")
- send("shipt Slivven on " .. matches[4] .. " at " .. infectedPerson .. "!")
- elseif matches[6] == "unmanned" and matches[7] then
- local infectedModule = matches[4]:gsub("%s*$","")
- send("shipt Slivven on " .. infectedModule .. "!")
- end</script>
- <triggerType>0</triggerType>
- <conditonLineDelta>0</conditonLineDelta>
- <mStayOpen>100</mStayOpen>
- <mCommand></mCommand>
- <mFgColor>#ff0000</mFgColor>
- <mBgColor>#ffff00</mBgColor>
- <mSoundFile></mSoundFile>
- <colorTriggerFgColor>#000000</colorTriggerFgColor>
- <colorTriggerBgColor>#000000</colorTriggerBgColor>
- <regexCodeList>
- <string>^\"([a-z]+)(\d+)\"\s+([A-Za-z ]+)\s+\d+\%\s+\/\s+([a-z]+) damage( \[[A-Za-z]+\])?( PARASITE!)?$</string>
- <string>return not tempGridStatus</string>
- </regexCodeList>
- <regexCodePropertyList>
- <integer>1</integer>
- <integer>4</integer>
- </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>Module</name>
- <script>if matches[5] == "no" then matches[5] = "none" end
- if matches[6] == "" or matches[6] == nil then matches[6] = "unmanned" end
- system.aetherModules[matches[2] .. matches[3]] = {moduleIdentifier = matches[3]:gsub("%s*$",""), damage = matches[5], name = matches[6]:gsub("[%[%]]","") or "unmanned", infectionStatus = matches[7] or "healthy"}
- if matches[6] ~="" and matches[6] ~="unmanned" and matches[7] then
- local infectedPerson = matches[6]:gsub("[%[%]]","")
- send("shipt Slivven on " .. matches[4] .. " at " .. infectedPerson .. "!")
- elseif matches[6] == "unmanned" and matches[7] then
- local infectedModule = matches[4]:gsub("%s*$","")
- send("shipt Slivven on " .. infectedModule .. "!")
- end</script>
- <triggerType>0</triggerType>
- <conditonLineDelta>0</conditonLineDelta>
- <mStayOpen>0</mStayOpen>
- <mCommand></mCommand>
- <mFgColor>#ff0000</mFgColor>
- <mBgColor>#ffff00</mBgColor>
- <mSoundFile></mSoundFile>
- <colorTriggerFgColor>#000000</colorTriggerFgColor>
- <colorTriggerBgColor>#000000</colorTriggerBgColor>
- <regexCodeList>
- <string>^\"([a-z]+)(\d+)\"\s+([A-Za-z ]+)\s+\d+\%\s+\/\s+([a-z]+) damage( \[[A-Za-z]+\])?( PARASITE!)?$</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>Close Grid Status and Process Damage</name>
- <script>--Close the gate and reset the switch
- tempGridStatus = false
- setTriggerStayOpen("Grid Status Gate", 0)
- --Process the damage
- system.moduleList = getDamagedModules()
- cureNextDamaged()
- </script>
- <triggerType>0</triggerType>
- <conditonLineDelta>99</conditonLineDelta>
- <mStayOpen>0</mStayOpen>
- <mCommand></mCommand>
- <mFgColor>#ff0000</mFgColor>
- <mBgColor>#ffff00</mBgColor>
- <mSoundFile></mSoundFile>
- <colorTriggerFgColor>#000000</colorTriggerFgColor>
- <colorTriggerBgColor>#000000</colorTriggerBgColor>
- <regexCodeList>
- <string>return isPrompt()</string>
- </regexCodeList>
- <regexCodePropertyList>
- <integer>4</integer>
- </regexCodePropertyList>
- </Trigger>
- </Trigger>
- </TriggerPackage>
- </MudletPackage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement