so first off heres thaeldans script for medievia:
function SetupID(aliasname, aliasline, wildcardsVB) {
world.Note("Installing [Item ID]");
world.AddTrigger("id_affects", "^ ([+|-].+) to (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_acapply", "^AC-apply of ([0-9\\-]+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_attributes", "^Attributes: (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_class", "^Class Restrictions: (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_dice", "^Damage Dice of (.+)d(.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_days", "^Days Left: (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_equip", "^Equipable Location\\(s\\): TAKE (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_egg", "It is surrounded by a (.+) aura.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_spell1", "^Level (.+) spell of (.+). Holds (.+) charges and has (.+) charges left.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_spell2", "^Level (.+) spells of (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_level", "Level Restriction: (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_name", "^Object: (.+) \\[", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition1", "The life of this object is clearly coming to an end soon.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition2", "The object appears to be in excellent condition.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition3", "The object appears to be in fair condition.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition4", "The object appears to be in good condition.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition5", "The object appears to be in perfect pristine condition.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition6", "The object clearly shows major signs of wear and tear.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition7", "The object is in fair condition but has some scratches.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition8", "The object is visibly crumbling and decaying....", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition9", "The object is visibly worn down with major wear.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition-1", "The object looks as if it will fall apart any day now.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_condition11", "This object has been blessed by the Gods and seems indestructable.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_multislot", "^MultiSlot Item: (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_regen", "Regenerates level ([0-9]+) spell of (.+). Has ([0-9]+) maximum charges.", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_effects", "^Item Type: (.+) Effects: (.+)", "", 1059, -1, 0, "", "ProcessID");
world.AddTrigger("id_initialize", "^Your divination is complete...", "", 1059, -1, 0, "", "InitID");
world.AddAlias("id_doid", "^(\\w+)id\\s*(.*)", "", 1153, "DisplayID");
world.Note("Done!");
}
function InitID(trigname, trigline, wildcardsVB) {
world.SetVariable("id_Affects", "");
world.SetVariable("id_AC", "");
world.SetVariable("id_Attr", "");
world.SetVariable("id_Dice", "");
world.SetVariable("id_Days", "");
world.SetVariable("id_Equip", "");
world.SetVariable("id_Egg", "");
world.SetVariable("id_Spell", "");
world.SetVariable("id_Level", "");
world.SetVariable("id_Name", "");
world.SetVariable("id_Condition", "");
world.SetVariable("id_MultiSlot", "");
world.SetVariable("id_Regen", "");
world.SetVariable("id_Effects", "");
} |