nicer templates
This commit is contained in:
parent
85b399e0bd
commit
1f2531a347
@ -28,19 +28,19 @@ function handleMoonslicer(message) {
|
||||
|
||||
var old_text = textarea.value;
|
||||
if (hit0 == 20 || hit1 == 20) {
|
||||
textarea.value = "&{template:desc} {{desc=20! +[[1d6]] ice}}";
|
||||
textarea.value = "&{template:npcdmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=+[[1d6]]}} {{dmg1type=Ice}}";
|
||||
submit_button.click();
|
||||
}
|
||||
if (hit0 == 19 || hit1 == 19) {
|
||||
textarea.value = "&{template:desc} {{desc=19! +[[1d4]] ice}}";
|
||||
textarea.value = "&{template:npcdmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=+[[1d4]]}} {{dmg1type=Ice}}";
|
||||
submit_button.click();
|
||||
}
|
||||
if (hit0 == 2 || hit1 == 2) {
|
||||
textarea.value = "&{template:desc} {{desc=2! [[floor(1d4/2)]] ice to self}}";
|
||||
textarea.value = "&{template:npcdmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[floor(1d4/2)]] to self}} {{dmg1type=Ice}}";
|
||||
submit_button.click();
|
||||
}
|
||||
if (hit0 == 1 || hit1 == 1) {
|
||||
textarea.value = "&{template:desc} {{desc=1! [[1d6]] ice to self}}";
|
||||
textarea.value = "&{template:npcdmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d6]] to self}} {{dmg1type=Ice}}";
|
||||
submit_button.click();
|
||||
}
|
||||
textarea.value = old_text;
|
||||
|
Loading…
Reference in New Issue
Block a user