Skip to content

Commit a5accfa

Browse files
committed
Added scent triggers (Based on Lusternia's)
added slow movement lines for rubble, backstab, and arrow wounds.
1 parent e256f4f commit a5accfa

File tree

1 file changed

+127
-0
lines changed

1 file changed

+127
-0
lines changed

mudlet-mapper.xml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@
6666
<string>You start plodding carefully across the constructed trenches.</string>
6767
<string>You struggle to climb over the snow drift in your way.</string>
6868
<string>You struggle to climb over the sand dune in your way.</string>
69+
<string>You slowly clamber over the rubble in your path.</string>
6970
</regexCodeList>
7071
<regexCodePropertyList>
7172
<integer>3</integer>
7273
<integer>3</integer>
7374
<integer>3</integer>
7475
<integer>3</integer>
7576
<integer>3</integer>
77+
<integer>3</integer>
7678
</regexCodePropertyList>
7779
</Trigger>
7880
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
@@ -1876,6 +1878,131 @@ disableTrigger("Aetolia Gag Survey")</script>
18761878
</regexCodePropertyList>
18771879
</Trigger>
18781880
</Trigger>
1881+
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
1882+
<name>mmp Aetolia Scent</name>
1883+
<script>mmp.tempscent = {}
1884+
mmp.pdb_lastupdate = {}</script>
1885+
<triggerType>0</triggerType>
1886+
<conditonLineDelta>0</conditonLineDelta>
1887+
<mStayOpen>100</mStayOpen>
1888+
<mCommand></mCommand>
1889+
<packageName></packageName>
1890+
<mFgColor>#ff0000</mFgColor>
1891+
<mBgColor>#ffff00</mBgColor>
1892+
<mSoundFile></mSoundFile>
1893+
<colorTriggerFgColor>#000000</colorTriggerFgColor>
1894+
<colorTriggerBgColor>#000000</colorTriggerBgColor>
1895+
<regexCodeList>
1896+
<string>You tilt your head back and deeply inhale any scents from the air.</string>
1897+
</regexCodeList>
1898+
<regexCodePropertyList>
1899+
<integer>3</integer>
1900+
</regexCodePropertyList>
1901+
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
1902+
<name>Got line</name>
1903+
<script>selectString(line, 1) replace""
1904+
1905+
-- get the name
1906+
cecho("&lt;green&gt;"..matches[2].."&lt;reset&gt;: ")
1907+
1908+
-- ids
1909+
mmp.echonums(matches[3])
1910+
1911+
-- pad spaces so we have aligned roomname
1912+
echo(string.rep(" ", 25 - #getCurrentLine()))
1913+
1914+
-- and finally, the roomname
1915+
echo(matches[3])
1916+
1917+
1918+
if mmp.tempscent[matches[3]] then
1919+
mmp.tempscent[matches[3]][#mmp.tempscent[matches[3]]+1] = matches[2]
1920+
else
1921+
mmp.tempscent[matches[3]] = {matches[2]}
1922+
end
1923+
1924+
-- save in our person tracking db
1925+
mmp.pdb[matches[2]] = matches[3]
1926+
mmp.pdb_lastupdate[matches[2]] = true</script>
1927+
<triggerType>0</triggerType>
1928+
<conditonLineDelta>0</conditonLineDelta>
1929+
<mStayOpen>0</mStayOpen>
1930+
<mCommand></mCommand>
1931+
<packageName></packageName>
1932+
<mFgColor>#ff0000</mFgColor>
1933+
<mBgColor>#ffff00</mBgColor>
1934+
<mSoundFile></mSoundFile>
1935+
<colorTriggerFgColor>#000000</colorTriggerFgColor>
1936+
<colorTriggerBgColor>#000000</colorTriggerBgColor>
1937+
<regexCodeList>
1938+
<string>^You pick up the faint scent of (\w+) at (.+)\.$</string>
1939+
</regexCodeList>
1940+
<regexCodePropertyList>
1941+
<integer>1</integer>
1942+
</regexCodePropertyList>
1943+
</Trigger>
1944+
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
1945+
<name>stop capturing</name>
1946+
<script>setTriggerStayOpen("mmp Aetolia Scent", 0)
1947+
raiseEvent("mmapper updated pdb")</script>
1948+
<triggerType>0</triggerType>
1949+
<conditonLineDelta>0</conditonLineDelta>
1950+
<mStayOpen>0</mStayOpen>
1951+
<mCommand></mCommand>
1952+
<packageName></packageName>
1953+
<mFgColor>#ff0000</mFgColor>
1954+
<mBgColor>#ffff00</mBgColor>
1955+
<mSoundFile></mSoundFile>
1956+
<colorTriggerFgColor>#000000</colorTriggerFgColor>
1957+
<colorTriggerBgColor>#000000</colorTriggerBgColor>
1958+
<regexCodeList>
1959+
<string></string>
1960+
</regexCodeList>
1961+
<regexCodePropertyList>
1962+
<integer>7</integer>
1963+
</regexCodePropertyList>
1964+
</Trigger>
1965+
</Trigger>
1966+
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
1967+
<name>Arrow wounds</name>
1968+
<script>mmp.customwalkdelay(2)</script>
1969+
<triggerType>0</triggerType>
1970+
<conditonLineDelta>0</conditonLineDelta>
1971+
<mStayOpen>0</mStayOpen>
1972+
<mCommand></mCommand>
1973+
<packageName></packageName>
1974+
<mFgColor>#ff0000</mFgColor>
1975+
<mBgColor>#ffff00</mBgColor>
1976+
<mSoundFile></mSoundFile>
1977+
<colorTriggerFgColor>#000000</colorTriggerFgColor>
1978+
<colorTriggerBgColor>#000000</colorTriggerBgColor>
1979+
<regexCodeList>
1980+
<string>You clutch your wounds and slowly make your way to the </string>
1981+
</regexCodeList>
1982+
<regexCodePropertyList>
1983+
<integer>2</integer>
1984+
</regexCodePropertyList>
1985+
</Trigger>
1986+
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
1987+
<name>Backstabbed</name>
1988+
<script>mmp.customwalkdelay(2)</script>
1989+
<triggerType>0</triggerType>
1990+
<conditonLineDelta>0</conditonLineDelta>
1991+
<mStayOpen>0</mStayOpen>
1992+
<mCommand></mCommand>
1993+
<packageName></packageName>
1994+
<mFgColor>#ff0000</mFgColor>
1995+
<mBgColor>#ffff00</mBgColor>
1996+
<mSoundFile></mSoundFile>
1997+
<colorTriggerFgColor>#000000</colorTriggerFgColor>
1998+
<colorTriggerBgColor>#000000</colorTriggerBgColor>
1999+
<regexCodeList>
2000+
<string>Your injured back delays your movement.</string>
2001+
</regexCodeList>
2002+
<regexCodePropertyList>
2003+
<integer>3</integer>
2004+
</regexCodePropertyList>
2005+
</Trigger>
18792006
</TriggerGroup>
18802007
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
18812008
<name>Asteria</name>

0 commit comments

Comments
 (0)