Difference between pages "Trigger" and "Template:Kolwiki"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Winterbay
m (Fix formatting)
 
imported>Heeheehee
m (Huh, why doesn't this work, again? (testing))
 
Line 1: Line 1:
{{DISPLAYTITLE:trigger (CLI)}}
+
<includeonly><span class="plainlinks">[http://kol.coldfront.net/thekolwiki/{{{1}}} {{{2|{{{1}}}}}}]</span></includeonly><noinclude>
This is a CLI command to add triggers to your mood, or remove all triggers.
+
Provides a link to the KolWiki. If there's a second parameter, it is used as the name of the link.  
  
* '''trigger clear''' will remove all triggers from your mood
+
* <code><nowiki>{{kolwiki|Lamz0r N00b}}</nowiki></code> produces this link: {{kolwiki|Lamz0r N00b}}.  
* '''trigger autofill''' will add triggers for all your buffing skills. This could be troublesome if you have Flavour of Magic since it will add triggers for all 5 elemental types.  
+
* <code><nowiki>{{kolwiki|The Valley Beyond The Orc Chasm|Orc Chasm}}</nowiki></code> produces this link: {{kolwiki|The Valley Beyond The Orc Chasm|Orc Chasm}}.
* Parameters for adding a trigger are: [type,] effect [, action]
 
** Possible types are gain_effect, lose_effect, unconditional
 
** For an unconditional trigger, the effect is ignored and may be left blank, but you still need commas around that place-holder, see below.
 
** action is CLI command to be executed when that condition is fulfilled
 
  
For example, you can tell your mood to auto-olfact Goth Giants whenever you lose the effect "On the Trail", like this:
+
[[Category:Basic Templates]]
:<pre>trigger lose_effect, On the Trail, olfact monster Goth Giant</pre>
+
</noinclude>
 
 
Example of an unconditional trigger to abort adventuring when a hunter brain has been found that you can eat:
 
:<pre>trigger unconditional, , ashq if(item_amount($item[hunter brain]) > 0 && my_fullness() < fullness_limit()) {abort();}</pre>
 
 
 
 
 
There can be no other command following trigger on a line. This is so that you can use a semi-colon to enable a multiple actions with a trigger like this:
 
:<pre>trigger lose_effect, Form of...Bird!, gong bird;use 5 yummy death watch beetle</pre>
 
 
 
[[Category:CLI Commands]]
 

Revision as of 20:15, 25 July 2010

Provides a link to the KolWiki. If there's a second parameter, it is used as the name of the link.