Cmud

by Dysolis

Back to Mechanic's Corner.

Dysolis2009-01-29 23:02:15
I would like to know if anyone has a code for telepathy's instant kill that's willing to give it to me. The code I am looking for is something that will give an alarm to when I am at half ego so it will automatically mindburst. Naturally I haven't taken programming yet and I hope I don't have to in the future! I use Cmud with Catarin's system so just wondering if you guys could help me out.
Unknown2009-01-30 20:19:54
QUOTE (Dysolis @ Jan 29 2009, 06:02 PM) <{POST_SNAPBACK}>
I would like to know if anyone has a code for telepathy's instant kill that's willing to give it to me. The code I am looking for is something that will give an alarm to when I am at half ego so it will automatically mindburst. Naturally I haven't taken programming yet and I hope I don't have to in the future! I use Cmud with Catarin's system so just wondering if you guys could help me out.


This is the general idea:

First I have an alias to discern the target (or whatever ability lets you see their ego for no balance/equilibrium cost). In my case, a failed absolve costs power, so you have to illusion proof your trigger. I'm not sure about mindburst, but if this is also the case, let me know and I can explain illusion proofing it.

Pattern: (%w)'s ego stands at (%d)/(%d).

#variable burstego %2
#variable fullego %3
#math burster @fullego/2
#if (@burstego > burster) {psychicvampire thing} {mindburst}


Explanation:
You need three variables, burstego, fullego, and burster. You set burstego to their current ego, full ego to their max ego. %2 refers to the second variable in our pattern string (the first %d). You use d for numbers, w for words. %3 refers to the third variable. You set burster to whatever their half ego is.

Then, if their current ego (burstego) is greater than half ego (burster), you drain their ego using something like pyschic vampire. If it's less than half, you mindburst.

Vathael2009-01-30 21:22:50
why set a variable for both instead of just doing the math in the trigger.. I'd do something like this

attackaliasthing does:
---
discern @target
dotelepathyattackstuff @target
---

Trigger:
#regex {^((@target).*)\\'s ego stands at (\\d+)\\/(\\d+)\\.$} {#if (%2 <= %eval(%3/2)) {mindburst @target} {psyvamp @target}}

((@target).*) (assuming @target is your target variable) will match to any form of your target like Vath instead of Vathael or Dys instead of Dysolis and then continue with the process pretty much as Alban described it.
Desitrus2009-01-30 22:15:19
Eh.

Combo this with other telepathy:

#alias vamp {#IF (@tarego<50) {psi super mindburst @target} {psi super psychicvampirism @target}

Add a class called VampBurst

Add to any combo the reactive alias:

#T+ VampBurst;discern @target

VampBurst has a trigger:

#TRIG {You stare deep into *'s soul and discern that:$*'s health stands at *.$*'s mana stands at *.$*'s ego stands at (&EnemyCurrentEgo)/(&EnemyMaxEgo).$*'s power stands at *.$} {#MATH tarego @EnemyCurrentEgo*100/@EnemyMaxEgo;vamp;#T- VampBurst}

VampBurst default is disabled. Put in your targetting alias to set tarego to 100 on target.
Unknown2009-01-30 22:19:19
QUOTE (Vathael @ Jan 30 2009, 04:22 PM) <{POST_SNAPBACK}>
why set a variable for both instead of just doing the math in the trigger.. I'd do something like this

attackaliasthing does:
---
discern @target
dotelepathyattackstuff @target
---

Trigger:
#regex {^((@target).*)\\'s ego stands at (\\d+)\\/(\\d+)\\.$} {#if (%2 <= %eval(%3/2)) {mindburst @target} {psyvamp @target}}

((@target).*) (assuming @target is your target variable) will match to any form of your target like Vath instead of Vathael or Dys instead of Dysolis and then continue with the process pretty much as Alban described it.


I made my absolve trigger a long time ago, but I remember trying to do something like that and zmud being weird, so I just did it in a longer, more step by step way.
Dysolis2009-01-31 10:48:36
#regex {^((@target).*)\\'s ego stands at (\\d+)\\/(\\d+)\\.$} {#if (%2 <= %eval(%3/2)) {mindburst @target} {psyvamp @target}}: that line I tried several times to get it to work and nothing, by discerning it would reflex off of the vamp but not switch to burst.