Majesty Gold HD

Majesty Gold HD

Not enough ratings
Decision Trees and Quest Scripts (RAW)
By Reality
Just copied straight from GPL opened in notepad (some do not function in-game)
   
Award
Favorite
Favorited
Unfavorite
Understanding Decesicion Trees
Heroes process what to do from top to bottom

Most tasks roll against a random number out of 100

The tasks that do NOT have a number listed are conditional, and often use subscripts where the hero tests their Intellegince/Willpower scores, eg, pursue entertainment or Marketplace.
Adept
function adept_tree(agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Check_Champion_Rewards (ThisAgent, 85) == False)

if ($Hall_Champs_Check(thisagent, 30) == False)

if ($patrol(thisagent, "building", 65) == FALSE)

if ($Combat_wandering(thisagent,60) == False)

if ($combat_wandering_heroes(thisagent,55) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 20) == False)

if ($check_library(thisagent,25, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,40, "Learn_generic_spell") == FALSE)

if ($Go_home(thisagent,95) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end
end
Barbarian
function barbarian_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False) //Barbarians are attracted to attack flags

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Rangers_guild") == False)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Hall_Champs_Check(thisagent, 40) == False)

if ($raid_enemy_building(thisagent,95) == False)

if ($Raid_lair(thisagent,95) == False)

if ($combat_wandering_heroes(thisagent,95) == False)

if ($Combat_wandering(thisagent,95) == False)

if ($explore_map(thisagent,45) == FALSE)

if ($check_library(thisagent,5, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,5, "Learn_generic_spell") == FALSE)

if ($collect_special_item (ThisAgent, 30) == False)

if ($Go_home(thisagent,45) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Cultist
function Cultist_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($Build_Pack(ThisAgent,95) == False)

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Swarm (ThisAgent, 90) == False)

if ($Combat_wandering(thisagent,85) == False) //Cultists never attack animals, they try to charm them

if ($combat_wandering_heroes(thisagent,85) == False)

if ($Patrol (ThisAgent, "Animal_Den", 60) == False)

if ($Steal_Check(thisagent,25) == False)

if ($Seed_Resource_Check (ThisAgent, 55) == False)

if ($collect_special_item (ThisAgent, 45) == False)

if ($Go_home(thisagent,30) == False)

if ($Raid_lair(thisagent,20) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 50) == False)

if ($check_library(thisagent,25, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,30, "Learn_generic_spell") == FALSE)

if ($raid_enemy_building(thisagent,20) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Warrior of Discord
function Discord_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Temple_Fervus") == False)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

// if ($Join_Cult_Mob(thisagent,20) == False)

if ($raid_enemy_building(thisagent,95) == False)

if ($Raid_lair(thisagent,95) == False)

if ($combat_wandering_heroes(thisagent,95) == False)

if ($Combat_wandering(thisagent,95) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 20) == False)

if ($check_library(thisagent,5, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,5, "Learn_generic_spell") == FALSE)

if ($Go_home(thisagent,50) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Dwarf
function Dwarf_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Blacksmith") == FALSE)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Hall_Champs_Check(thisagent, 30) == False)

if ($Raid_lair(thisagent,75) == False) //Dwarves do extra damage against buildings

if ($raid_enemy_building(thisagent,80) == False)

if ($Check_Champion_Rewards (ThisAgent, 70) == False)

if ($Combat_wandering(thisagent,15) == False)

if ($combat_wandering_heroes(thisagent,15) == False)

if ($help_build(thisagent,2000,85) == False)

if ($collect_special_item (ThisAgent, 40) == False)

if ($Visit_Building(ThisAgent, "Inn", 20) == False)

if ($check_library(thisagent,15, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,25, "Learn_generic_spell") == FALSE)

if ($Go_home(thisagent,80) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Elf
function Elf_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");

$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Gambling_hall") == FALSE)

if ($defend_building(thisagent,"Brothel") == FALSE)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($Visit_Building(ThisAgent, "Inn", 50) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Hall_Champs_Check(thisagent, 20) == False)

if ($Visit_Building(ThisAgent, "Trading_Post", 35) == False)

if ($Visit_Building(ThisAgent, "Marketplace", 20) == False)

if ($Combat_wandering(thisagent,80) == False)

if ($Combat_wandering_heroes(thisagent,80) == False)

if ($Raid_lair(thisagent,15) == False)

if ($Raid_enemy_building(thisagent,15) == False)

if ($Steal_Check(thisagent,50) == False)

if ($collect_special_item (ThisAgent, 80) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 45) == False)

if ($check_library(thisagent,25, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,55, "Learn_generic_spell") == FALSE)


if ($Go_home(thisagent,90) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Gnome
function Gnome_tree (agent thisagent)

declare

begin
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

// if ($Defend_home(thisagent) == False)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($help_build(thisagent,3500,75) == False)

if ($Hall_Champs_Check(thisagent, 30) == False)

if ($Combat_Wandering (ThisAgent, 20) == False)

if ($Combat_wandering_heroes( thisagent,10) == False)

// if ($Swarm (thisagent,90) == False)
if ($Visit_Building(ThisAgent, "Royal_gardens", 50) == False)

if ($check_library(thisagent,10, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,15, "Learn_generic_spell") == FALSE)

if ($Go_home(thisagent,90) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Healer
function Healer_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,TRUE) == False)

if ($Defend_home(thisagent) == False)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Heal_Others(ThisAgent,95) == False)

if ($Follow_Heal_Check (ThisAgent, "Warrior", 75) == False)

if ($Follow_Heal_Check (ThisAgent, "Wizard", 35) == False)

if ($follow_heal_check (thisagent, "tax_collector",50) == FALSE)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($Seed_Resource_Check (ThisAgent, 50) == False)

if ($Visit_Building(ThisAgent, "Inn", 20) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 50) == False)

if ($check_library(thisagent,35, "Train_magic_resist") == FALSE)

if ($Go_home(thisagent,90) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Monk
unction Monk_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Marketplace") == FALSE)

if ($rest(thisagent) == False)

// if ($Guard_check(thisagent,"hero","Healer",95) == False)

// if ($Guard_check(ThisAgent,"hero","caravan",75) == False)

if ($Combat_wandering(thisagent,75) == False)

if ($Raid_Lair(ThisAgent,50) == False)

if ($Visit_Building(ThisAgent, "Inn", 50) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 40) == False)

if ($check_library(thisagent,45, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,55, "Learn_generic_spell") == FALSE)

if ($collect_special_item (ThisAgent, 70) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($Hall_Champs_Check(thisagent, 50) == False)

if ($Go_home(thisagent,60) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Paladin
function Paladin_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Temple_Dauros") == False)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Hall_Champs_Check(thisagent, 60) == False)

if ($Raid_lair(thisagent,85) == False)

if ($raid_enemy_building(thisagent,85) == FALSE)

if ($Combat_wandering(thisagent,90) == False)

if ($combat_wandering_heroes(thisagent,80) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 10) == False)

if ($check_library(thisagent,25, "Train_magic_resist") == FALSE)

if ($Go_home(thisagent,80) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Priestess
unction Priestess_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($Build_Horde(ThisAgent,95) == False)

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Hall_Champs_Check(thisagent, 40) == False)

if ($Combat_wandering(thisagent,75) == False) //Priestesses never attack undead-- they try to control them

if ($combat_wandering_heroes(thisagent,70) == False)

if ($Raid_Lair(ThisAgent,40) == False)

if ($raid_enemy_building(thisagent,30) == FALSE)

if ($Explore_Map(thisagent,50) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 15) == False)

if ($check_library(thisagent,45, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,70, "Learn_generic_spell") == FALSE)

if ($Go_home(thisagent,80) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Ranger
function ranger_tree (agent thisagent)

declare

begin

$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"trading_post") == FALSE)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Collect_resource(thisagent,"healing_herbs",95) == FALSE)

if ($follow_support_check(thisagent,"barbarian",90) == FALSE)

if ($Hall_Champs_Check(thisagent, 40) == False)

if ($explore_map(thisagent,95) == false)

if ($Combat_wandering(thisagent,75) == False)

if ($combat_wandering_heroes(thisagent,55) == False)

// if ($Heal_another(thisagent,80) == False)

if ($Journey_Offmap_Check (thisagent,30) == false)

if ($Go_home(thisagent,15) == False)

if ($check_library(thisagent,15, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,30, "Learn_generic_spell") == FALSE)

if ($Raid_lair(thisagent,15) == False)

if ($raid_enemy_building(thisagent,10) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 30) == False)

if ($Visit_Building(ThisAgent, "Inn", 15) == False)
begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Rogue
function Rogue_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Gambling_hall") == FALSE)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Loot_Gravestones(ThisAgent,100) == False)

if ($Steal_Check(thisagent,95) == False)

if ($collect_special_item (ThisAgent, 90) == False)

if ($Collect_Resource(thisagent,"poison_plants",90) == False)

if ($check_library(thisagent,15, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,25, "Learn_generic_spell") == FALSE)

if ($Hall_Champs_Check(thisagent, 40) == False)

if ($Combat_wandering(thisagent,65) == False)

if ($combat_wandering_heroes(thisagent,55) == False)

// if ($Raid_lair(thisagent,35) == False)

if ($Visit_Building(ThisAgent, "Inn", 35) == False)

if ($explore_map(thisagent,20) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 30) == False)

if ($Go_home(thisagent,95) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Solarus
function Solarus_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Marketplace") == FALSE)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

if ($Hall_Champs_Check(thisagent, 40) == False)

//if ($Raid_lair(thisagent,95) == False)

if ($Check_Champion_Rewards (ThisAgent, 70) == False)

//This covers both hidden and unhidden lairs
if ($Find_Lair (ThisAgent, 95) == False)

if ($Raid_enemy_building(thisagent,95) == False)

//if ($patrol(thisagent, "guardhouse", 25) == FALSE)

if ($Garrison_Check(ThisAgent, 50) == False)

if ($explore_map(thisagent,75) == FALSE)

if ($Visit_Building(ThisAgent, "Royal_gardens", 15) == False)

if ($check_library(thisagent,15, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,50, "Learn_generic_spell") == FALSE)

if ($Go_home(thisagent,5) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Warrior
function warrior_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"temple_agrela") == FALSE)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($Hall_Champs_Check(thisagent, 40) == False)

if ($pursue_entertainment(thisagent) == False)

// if ($Guard_check(thisagent,"hero","caravan",90) == FALSE)

if ($Raid_lair(thisagent,95) == False)

if ($raid_enemy_building(thisagent,90) == False)

if ($Combat_wandering(thisagent,95) == False)

if ($combat_wandering_heroes(thisagent,95) == False)

if ($Visit_Building(ThisAgent, "Inn", 50) == False)

if ($check_library(thisagent,10, "Train_magic_resist") == FALSE)

if ($check_library(thisagent,10, "Learn_generic_spell") == FALSE)

if ($collect_special_item (ThisAgent, 20) == False)

if ($Go_home(thisagent,90) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 20) == False)

if ($explore_map(thisagent,45) == FALSE)
begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Wizard
function Wizard_tree (agent thisagent)

declare

begin

// $debugout("I'm deciding what to do!");
$createeffector(thisagent,"thought_bubble_think",#think_bubble_time);
$SpecifyIntent (ThisAgent, #Intent_Thinking);

if ($check_nearby(thisagent) == False)

if ($Check_rewards(thisagent,FALSE) == False)

if ($Defend_home(thisagent) == False)

if ($defend_building(thisagent,"Library") == FALSE)

if ($defend_building(thisagent,"Marketplace") == FALSE)

if ($rest(thisagent) == False)

if ($Purchase_equipment(thisagent) == False)

if ($Purchase_bazaar(thisagent, 70) == False)

if ($pursue_entertainment(thisagent) == False)

// if ($Collect_Resource (ThisAgent, "Magic_Crystals",90) == FALSE)

if ($Check_Library(thisagent,90, "Wizard_Spell") == False)

if ($check_library(thisagent,55, "Wizard_train_intel") == FALSE)

if ($check_library(thisagent,15, "Train_magic_resist") == FALSE)

if ($Hall_Champs_Check(thisagent, 30) == False)

if ($follow_support_check(thisagent,"barbarian",30) == FALSE)

if ($follow_support_check(thisagent,"monk",20) == FALSE)

if ($Raid_lair(thisagent,45) == False)

if ($raid_enemy_building(thisagent,30) == False)

if ($Combat_wandering(thisagent,65) == False)

if ($combat_wandering_heroes(thisagent,60) == False)

if ($Explore_Map(thisagent,50) == False)

if ($Visit_Building(ThisAgent, "Royal_gardens", 5) == False)

if ($Go_Home(thisagent,85) == False)

begin
$SpecifyIntent (ThisAgent, #intent_wandering);
thisagent's "counter" = 0;
thisagent's "activescript" = $hero_wander;
end

end
Short Reference
Generic Scripts

check nearby - generally the heroes sub-script which can overide behavior depending on things within their own vision radius (eg getting attacked, opening treasure chests, etc)

check rewards - reward flags have secondary checks depending on the heroes loyalty, greed, the distance, and the raw gold amount. explore flags also check to make sure that no other hero is competing for that same explore flag

defend home - overides normal fight or flight and will put them into berserking if they fail defend home status

rest - higher chance if they are low HP or have a high amount of untaxed gold they want to convert to taxed gold

purchase equipment - Checks against funds available

purchase bazaar - probbably activates more frequently than intended

pursue entertainment - gambling hall and elven lounge stuff

check champion rewards - this is fighting the monsters with a bounty on them

hall champs check - this is actually visiting the building to get a random buff

combat wandering - this allows heroes to "know" where a monster is when it is far beyond their normal vision, it converts into normal attack object (eg fighting) once they arrive near the monster

combat wandering heroes - this means Red heroes or Multiplayer heroes

visit Royal Gardens - usually this is extremely low priority

visit inn - More heroes are missing this function completely than visit royal gardens

check libary train magic resist -

check libary generic spell - Power Shock

Raid Lair - This causes heroes to attack buildings even without using a flag

Raid EnemyBuilding - same for red buildings

Explore Map - Exploring without needing flags

Collect Special Item - Logically this should mean things like the brashnard sphere pieces, etc but I'm pretty sure it is obsoleted by check nearby

go home - The final go home check

wandering - the rare wandering status

Rare and specific hero scripts

patrol Player Buildings(Adept) The Adept specific Patroling status

patrol Animal Den Lair (Cultist) A Cultist Patrolling status probably designed to make them charm more animals

Build Horde (Priestess) - The Skeleton summoning status

Build Pack (Cultist) - used when the cultist is approaching animals from the temple of fervus

Swarm (Cultist) - Used when Cultist is approaching animal onsters

Heal Others - Used when the Healer is looking for someone that they CAN"T follow to heal once

Follow and Heal Warrior - Healer only

Follow and Heal Wizard - Healer only

Follow and Heal Tax Collector = Healer only

Follow and Support Barbarian = Ranger AND Wizard

Follow and support monk = Wizard Only

Help Build (Dwarf,Gnome) - triggers a partial sharing of the peasant activity tree

Seed Resource(Cultist,Healer) - plant poison/healing herbs

Collect Resource (Ranger,Rogue) - collect the same

Steal - they check both player buildings AND enemy lairs, some buildings (palace) are invalid

Loot Gravestones - Rogue only

Garison Guardhouse - Solari Only

Find Lair - Solari Only, Lets them find a lair in the fog. Automatically results in attacking it afterwrds

Journey off map - Ranger Only, does give experience

check libary wizard spells - Wizard only (Fireball, Meteor storm and the other purble spells)

check libary wizard train intellegince - Wizard Only, gives a single INT prime statistic point

Defend building - When defending a building other than their own guild or the palace

(Barbarian=Ranger'sGuild)(Warrior of Discord = Temple Fervus)(Dwarf=Blacksmith)(Monk=Marketplace)(Paladin=Temple of Dauros)(Ranger=Trading Post)(Rogue=Gambling Hall)(Solarus=Marketplace)(Warrior=Temple of Agrela)(Wizard=LibaryAN♥♥♥♥♥♥♥place)
1 Comments
Kaboombunny 7 Jun, 2023 @ 8:01pm 
Meanwhile, all of my level 1 Rangers, "I'm gonna berserk at this skeleton. All 4 of us are going to die to this one skeleton, because berserk."