See 'n Say Comparison (script)

From Elanthipedia
Revision as of 17:09, 6 December 2014 by ISHARON (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
See 'n Say Comparison (script)
Category information
Front-end Genie
Author Isharon

This is a script that compares any two weapons, shields, or pieces of armor and then echoes the comparison in an IC way.

For IC appraisals, use See 'n Say Appraisal (script).

Updates

Updated 10/11/2010: This script now works with Durability 2.0.

Syntax

.COMPARE %1 %2

%1: first item (use periods instead of spaces) %2: second item (use periods instead of spaces)

Usage Notes

You do not need to type the full name of the item in order for it to appear in the output. The weapon name is read from the part of the appraisal that states the value.

The script should distinguish between singular and plural items when composing the output. For example, if you appraise your gauntlets, it will say, "the gauntlets are," not "the gauntlets is."

Swappable Weapons

Swappable weapons, such as bastard swords, are only partially supported by comparison. You will need to swap the weapon to compare both modes.

Sample Outputs

Weapon: The ivory-hilted jambiya does more puncture damage, does a little less slice damage, does less impact damage, is far more balanced, is far less suited to gaining extra attack power from your strength, and is about as strong as the pearl-hilted katar.

Shield: The blue shield has about as good of a basic defense, has a lot higher full defense, is a lot harder to maneuver with, and is about as strong as the leather buckler.

Armor: The gleaming silver armor is somewhat more resistant to and more absorptive of puncture damage, is more resistant to and more absorptive of slice damage, is about as resistant to and more absorptive of impact damage, is a little more resistant to and a little more absorptive of fire, is about as resistant to and a little more absorptive of cold, is about as resistant to and a little more absorptive of electricity, is far harder to maneuver with, and is about as strong as the brushed copper hauberk.

Script

send compare %1 with %2

action setvariable name1 $1 when You are certain that a (.*) (add|is)
action setvariable name1 $1 when You are certain that an (.*) (add|is)
action setvariable name1 $1 when You are certain that some (.*) (add|is)
action setvariable name1 $1 when You are certain that the (.*) (add|is)
action setvariable name1 $1 when You are certain that a (.*) is .+ resistant
action setvariable name1 $1 when You are certain that an (.*) is .+ resistant
action setvariable name1 $1 when You are certain that some (.*) is .+ resistant
action setvariable name1 $1 when You are certain that the (.*) is .+ resistant
action setvariable name2 $1 when You are certain that .+ as a (.*).
action setvariable name2 $1 when You are certain that .+ as an (.*).
action setvariable name2 $1 when You are certain that .+ as some (.*).
action setvariable name2 $1 when You are certain that .+ as the (.*).
action setvariable name2 $1 when You are certain that .+ than a (.*).
action setvariable name2 $1 when You are certain that .+ than an (.*).
action setvariable name2 $1 when You are certain that .+ than some (.*).
action setvariable name2 $1 when You are certain that .+ than the (.*).
action setvariable const1 when You are certain that the .+ is stronger than .+
action setvariable const1 $1 when You are certain that the .+ is (.*) stronger than .+
action setvariable const1 $1 when You are certain that the .+ is (.*) weaker than .+
action setvariable const1 when You are certain that the .+ is weaker than .+
action setvariable const1 $1 when You are certain that the .+ is (.*) as strong as .+
action setvariable const2 stronger than when .+ stronger than .+
action setvariable const2 weaker than when .+ weaker than .+
action setvariable const2 as strong as when .+ about as strong as .+
action setvariable balance $1 when You are certain that .+ is (.*) balanced than .+
action setvariable balance $1 when You are certain that .+ is (.*) balanced as .+
action setvariable power $1 when You are certain that .+ is (.*) suited to gaining extra attack power from your strength than .+
action setvariable power $1 when You are certain that .+ is (.*) suited to gaining extra attack power from your strength as .+
action setvariable puncture $1 when You are certain that .+ add (.*) puncture damage .+
action setvariable puncture $1 when You are certain that .+ does (.*) puncture damage .+
action setvariable slice $1 when You are certain that .+ add (.*) slice damage .+
action setvariable slice $1 when You are certain that .+ does (.*) slice damage .+
action setvariable impact $1 when You are certain that .+ improve impact damage (.*) (a|an|the|some)
action setvariable impact $1 when You are certain that .+ does (.*) impact damage .+
action setvariable hindrance $1 when You are certain that .+ is (.*) to maneuver with .+
action setvariable bdefense $1 when You are certain that .+ has (.*) basic defense .+
action setvariable fdefense $1 when You are certain that .+ has (.*) full defense .+
action setvariable presist $1 when You are certain that .+ is (.*) resistant to puncture damage .+
action setvariable sresist $1 when You are certain that .+ is (.*) resistant to slice damage .+
action setvariable iresist $1 when You are certain that .+ is (.*) resistant to impact damage .+
action setvariable fresist $1 when You are certain that .+ is (.*) resistant to fire .+
action setvariable cresist $1 when You are certain that .+ is (.*) resistant to cold .+
action setvariable eresist $1 when You are certain that .+ is (.*) resistant to electricity .+
action setvariable pabsorb $1 when You are certain that .+ is (.*) absorptive of puncture damage .+
action setvariable sabsorb $1 when You are certain that .+ is (.*) absorptive of slice damage .+
action setvariable iabsorb $1 when You are certain that .+ is (.*) absorptive of impact damage .+
action setvariable fabsorb $1 when You are certain that .+ is (.*) absorptive of fire .+
action setvariable cabsorb $1 when You are certain that .+ is (.*) absorptive of cold .+
action setvariable eabsorb $1 when You are certain that .+ is (.*) absorptive of electricity .+

matchre melee does
matchre pstick parry stick|calcified femur
matchre brawlinge affect impact damage|elbow blades|elbow spikes|elbow wraps
matchre brawlingb affect puncture|slice damage
matchre shield basic defense|full defense
matchre armor2 gauntlets|gloves|greaves|leathers|legguards|vambraces
matchre armor1 resistant
matchre ammo2 arrows|bolts|bullets|clumps|lumps|pulzones|quadrellos|quarrels|rocks
matchre ammo1 arrow|bolt|bullet|clump|lump|pulzone|quadrello|quarrel|rock
matchre bow bow
matchwait

melee:
echo The %name1 does %puncture puncture damage, does %slice slice damage, does %impact impact damage, is %balance balanced, is %power suited to gaining extra attack power from your strength, and is %const1 %const2 the %name2.
pause
goto end

pstick:
echo The %name1 and the %name2 are parry sticks, which are simply worn to parry blows. All parry sticks are reasonably balanced. However, some are better made than others. The construction of these items cannot be compared without appraising each of them.
pause
goto end

brawlinge:
echo The %name1 add %puncture puncture damage and add %slice slice damage than the %name2. These weapons are too different to compare their effect on impact damage.
pause
goto end

brawlingb:
echo The %name1 improve impact damage %impact the %name2.
pause
goto end

shield:
echo The %name1 has %bdefense basic defense, has %fdefense full defense, is %hindrance to maneuver with, and is %const1 %const2 the %name2.
pause
goto end

armor2:
echo The %name1 are %presist resistant to and %pabsorb absorptive of puncture damage, are %sresist resistant to and %sabsorb absorptive of slice damage, are %iresist resistant to and %iabsorb absorptive of impact damage, are %fresist resistant to and %fabsorb absorptive of fire, are %cresist resistant to and %cabsorb absorptive of cold, are %eresist resistant to and %eabsorb absorptive of electricity, are %hindrance to maneuver with, and are %const1 %const2 the %name2.
pause
goto end

armor1:
echo The %name1 is %presist resistant to and %pabsorb absorptive of puncture damage, is %sresist resistant to and %sabsorb absorptive of slice damage, is %iresist resistant to and %iabsorb absorptive of impact damage, is %fresist resistant to and %fabsorb absorptive of fire, is %cresist resistant to and %cabsorb absorptive of cold, is %eresist resistant to and %eabsorb absorptive of electricity, is %hindrance to maneuver with, and is %const1 %const2 the %name2.
pause
goto end

ammo2:
echo The %name1 do %puncture puncture damage, do %slice slice damage, do %impact impact damage, and are %const1 %const2 the %name2.
pause
goto end

ammo1:
echo The %name1 does %puncture puncture damage, does %slice slice damage, does %impact impact damage, and is %const1 %const2 the %name2.
pause
goto end

bow:
echo The %name1 is %balance balanced and is %power suited to gaining extra attack power from your strength than the %name2.
pause
goto end

end: