Author |
Message |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Sun Dec 11, 2011 10:52 pm Subject: How do I go about this project? |
I like efficiency. Thanks for the tip Rahab :) |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Sat Dec 03, 2011 5:01 pm Subject: How do I go about this project? |
#ALIAS who {
#TRIGGER {^(%w)%s(%w)*} {#IF (%2 = @target) {#var status %1}}
~who
#wait 600
#UNTRIGGER {^(%w)%s(%w)*}
}
#TRIGGER {^AC: -(%d). You are ultimately armored!$} {
#var AC -%1 ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Sat Dec 03, 2011 2:30 am Subject: How do I go about this project? |
It wont append anything thats already in the file. So if I hit that alias twice it will only post the fight once. But will it append it after a different fight? Even though the same exact information ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Sat Dec 03, 2011 2:20 am Subject: How do I go about this project? |
Now it writes everything to a file for future reference :)
#FILE 1 combat.txt
$avg=0
#FORALL @dmg {$avg=($avg+%i)}
$avg=($avg*1.0/%numitems(@dmg))
SAY Over %numitems(@dmg) hits I did $avg av ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Sat Dec 03, 2011 1:59 am Subject: How do I go about this project? |
This is what I have working now. Variables are removed with unvar when I initiate combat again.
#trigger {You {hit|stab|whip|blast|crush|bite|slice|slash|claw|pound|grep|pierce|suck} %w {very|extre ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Thu Dec 01, 2011 11:41 pm Subject: How do I go about this project? |
This much should tell you who is attacking and what type of attack it is reguardless of line (with what i saw), which should easily allow you to assign the variables you need for combat analysis
#T ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Thu Dec 01, 2011 11:37 pm Subject: How do I go about this project? |
Here's a tough one. At the end of combat I have all numbers displayed like so:
Your attacks: 131|131|132|133|135|135|135|140|141|144|148|152|159|162|166|167|175|209|223|223|223|223|225|225|225|225| ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Thu Dec 01, 2011 10:31 pm Subject: How do I go about this project? |
#ALIAS k {#unvar fdmg;
#unvar dmg;
#unvar vicfdmg;
#unvar vicdmg;
kill @target
}
#TR {%w's fireball %* ~((%d)~)} {
#var vicfdmg %additem(%1, @vicfdmg)
}
#TR {Tyron %w ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Thu Dec 01, 2011 8:25 pm Subject: How do I go about this project? |
#trigger {^You %w %* ~((%d)~)$} {#addkey dmg %1}
Uh oh, I think I'm on to something. It automatically sorted it from least to greatest too.
Edit: Won't add duplicate key values.
I tried #trigge ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Thu Dec 01, 2011 8:14 pm Subject: How do I go about this project? |
I'm thinking maybe I can use an array to do this. Super noob with arrays though. Going to sit here and crash cmud playing with it until someone replies. |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Thu Dec 01, 2011 5:36 pm Subject: How do I go about this project? |
I'll post what I have together so far. It's really not much but it may be helpful in determining how to help me.
#trigger {^You %w %* ~((%d)~)$} {#var dmg %1}
This was made to mostly so I could ... |
Topic: How do I go about this project? |
Guthrie
Replies: 15
Views: 8567
|
Forum: CMUD General Discussion Posted: Thu Dec 01, 2011 5:21 pm Subject: How do I go about this project? |
What I'd like to do is create a script that will in the end show me the following:
Average damage of my swings and my victims melee attacks.
Average damage of my fireballs and my victims fireballs ... |
|