Difference between revisions of "SkibUserMacros:DefendMonitor"
From Protoi Healing
Line 48: | Line 48: | ||
# Use '''DATABASE''' 'AttackKinds'. | # Use '''DATABASE''' 'AttackKinds'. | ||
# 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}} |
Revision as of 17:14, 7 February 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 tries to defend you or the person you use it on, blocking the attacks on you or the person the macro is used on and reflecting it back and starts counterattacks on the attackers.
<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'.
- 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