Difference between revisions of "SkibUserMacros:DefendMonitor"
From Protoi Healing
(3 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
'''Description''' | '''Description''' | ||
− | :This Macro | + | :This Macro monitors <person(s)> 24/7. If it senses some attack on <person(s)>, it starts the 'Defend' UserMacro with the given parameters. |
+ | |||
Line 47: | Line 48: | ||
# Use '''DATABASE''' 'Malfunction'. | # Use '''DATABASE''' 'Malfunction'. | ||
# Use '''DATABASE''' 'AttackKinds'. | # Use '''DATABASE''' 'AttackKinds'. | ||
+ | # Use {{Method|self-optimizing}} for all parts of this macro. | ||
# Always store or update all in this macro identified 'attack kinds' in the 'AttackKinds' '''DATABASE'''. | # Always store or update all in this macro identified 'attack kinds' in the 'AttackKinds' '''DATABASE'''. | ||
+ | # '''MONITOR''' 24/7 all <person(s)> for attacks. | ||
+ | ## '''IF''' the monitoring senses an attack and UserMacro 'Defend' is not running, '''DO:''' | ||
+ | ### '''SUBMACRO-START''' 'Defend' <person(s)> {Use butterfly} {Use solver}. | ||
+ | ## '''IF-END''' | ||
+ | # '''MONITOR-END''' | ||
{{EndBox}} | {{EndBox}} |
Latest revision as of 23:34, 20 May 2017
Name | DefendMonitor |
---|---|
Author | Frank |
Brief descr. | Monitors <person(s)>, and starts Defend macro in case of attacks. |
Status | public |
Terms | Usable on oneself and others |
Resources for the UserMacro | |||||
---|---|---|---|---|---|
1 | 10 | 100 | |||
1k | 100k | 1kk | |||
10kk | Gmax | Omax | |||
Resources with butterfly option | |||||
1 | 10 | 100 | |||
1k | 100k | 1kk | |||
10kk | Gmax | Omax |
Command syntax
Description
- This Macro monitors <person(s)> 24/7. If it senses some attack on <person(s)>, it starts the 'Defend' UserMacro with the given parameters.
<person(s)>
- Defines who this macro is used on. It might be used for a person (by name) or for a group of persons (for more than 1 names at the same time) or on oneself.
{Use butterfly}
- This option activates the use of the butterfly-method inside the macro algorithm. This gives much more power, but also needs a lot of resources from Skib. You should be aware of this!
Algorithm of User Macro
- Use DATABASE 'Malfunction'.
- Use DATABASE 'AttackKinds'.
- Use self-optimizing for all parts of this macro.
- Always store or update all in this macro identified 'attack kinds' in the 'AttackKinds' DATABASE.
- MONITOR 24/7 all <person(s)> for attacks.
- IF the monitoring senses an attack and UserMacro 'Defend' is not running, DO:
- SUBMACRO-START 'Defend' <person(s)> {Use butterfly} {Use solver}.
- IF-END
- IF the monitoring senses an attack and UserMacro 'Defend' is not running, DO:
- MONITOR-END