Batclient triggers tzarakk

From BatWiki
Jump to: navigation, search
SCRIPT_NAME = "tzarakk.bcs";
SCRIPT_DESC = "tzarakk triggers";
SCRIPT_OFF = false;

// Tzarakk stuff

// Edit this...
String mountName = "Alabaster";

Color green = new Color(0, 127, 0);
Color light_green = new Color(102, 255, 102);
Color bright_green = new Color(0, 255, 0);
Color pink_brown = new Color(255, 153, 153);
Color dull_yellow = new Color(255, 255, 102);
Color yellow = new Color(255, 255, 50);
Color bright_yellow = new Color(255, 255, 0);
Color orange = new Color(252, 88, 22);
Color red = new Color(127, 0, 0);
Color light_red = new Color(255, 0, 0);

// Feel free to edit these

Color energy_energetic = light_green;
Color energy_brisk     = green;
Color energy_st        = green;
Color energy_tired     = orange;
Color energy_exhausted = red;
Color energy_ce        = red;
Color energy_inches    = light_red;

void addEnergyLite(String triggerName, String pattern, Color liteColor)
{
	triggerManager.newTrigger(triggerName,
	    mountName + " " + pattern,
	    "", false, false, true,
	    new Color[] { liteColor }, Font.PLAIN);
}

void bootup() {
    // Mount Energy Lites
    addEnergyLite("energy_energetic", "(looks energetic)", energy_energetic);
    addEnergyLite("energy_brisk", "(looks brisk)", energy_brisk);
    addEnergyLite("energy_st", "(looks slightly tired)", energy_st);
    addEnergyLite("energy_tired", "(looks tired)", energy_tired);
    addEnergyLite("energy_exhausted", "(looks exhausted)", energy_exhausted);
    addEnergyLite("energy_ce", "(looks completely exhausted)", energy_ce);
    addEnergyLite("energy_inches", "(looks within inches of dying)", energy_inches);

    triggerManager.newTrigger("steed_ride",
        "^" + mountName + " appears in a violent burst of chaos.$",
        "ride " + mountName, false, false, false,
        null , Font.PLAIN);

	triggerManager.newTrigger("steed_ride2",
		"^A bizarre mist starts to form itself rapidly, and within moments a dark morbid*",
		"ride " + mountName, false, false, false,
		null , Font.PLAIN);

	triggerManager.newTrigger("spawn_up",
		"^The pain increases as your body starts to push out organs and limbs that should not be there.",
		"party report Spawn form active.;wearall", false, false, false,
		null , Font.PLAIN);

	triggerManager.newTrigger("spawn_failing",
		"^You feel like the pulse of chaos inside you is slowing down",
		"- Spawn will drop in 2 minutes.",
		false, true, false,
		new Color[]{light_red}, Font.PLAIN);

	triggerManager.newTrigger("respawned",
		"^You force yourself deeper into the chaos frenzy!",
		"party report Respawned... I'm a three-tentacled chaos beast.", false, false, false,
		null , Font.PLAIN);

	triggerManager.newTrigger("spawn_dropped",
		"^The extra organs retract back into your body",
		"- Spawn down!",
		false, true, false,
		new Color[]{light_red}, Font.PLAIN);

	triggerManager.newTrigger("dismounted",
		"^You are now off your mount.$",
		"party report Dismounted!", false, true, false,
		new Color[]{bright_yellow}, Font.PLAIN);

	triggerManager.newTrigger("dismounted2",
		"^You are knocked off your mount*",
		"party report Argh, I was knocked off my steed!;lead " + mountName, false, true, false,
		new Color[]{light_red}, Font.PLAIN);

	triggerManager.newTrigger("dismounted3",
		"^Your mount throws you!$",
		"party report Blasted, I was thrown from my mount!;lead " + mountName, false, true, false,
		new Color[]{light_red}, Font.PLAIN);

	triggerManager.newTrigger("in_the_light",
		"You feel exhausted, being here in the light.$",
		"", false, true, false,
		new Color[]{light_red}, Font.PLAIN);

	triggerManager.newTrigger("mount_full",
		"It goes to the floor[.]",
		"", false, true, false,
		new Color[]{light_red}, Font.PLAIN);

// ridden / lead Lites

	triggerManager.newTrigger("tzarakk_beingridden",
	    "^It is being ridden by",
	    "", false, true, false,
	    new Color[]{green}, Font.PLAIN);

	triggerManager.newTrigger("tzarakk_beinglead",
	    "^It is being led by",
	    "", false, true, false,
	    new Color[]{orange}, Font.PLAIN);
}