Method PlayerBot.ChangeBotStrategy [-] [+]

Toggle a named strategy for the specified bot state.

This forwards to PlayerbotAI::ChangeStrategy. In mod-playerbots this toggles the named strategy on or off depending on whether it is already active. Valid strategy names depend on the bot's class/spec and state.

Common examples: - Non-combat: "follow", "quest", "loot", "chat", "food", "mount" - Combat: "dps", "heal", "tank", "aoe", "cure", "dps assist", "tank assist" - Class/spec examples: "fire", "frost", "arcane", "shadow", "holy", "resto", "enh", "blood", "unholy", "affli", "demo", "destro", "bm", "mm", "surv"

Use GetBotStrategies first if you want to see what is currently active. If you are unsure whether a name is valid for the bot, inspect the class strategy setup in mod-playerbots or use SendBotCommand(guidLow, "strategy").

State values are the BotState enum: - 0 = combat - 1 = non-combat - 2 = dead

Synopsis

success = Playerbot.ChangeBotStrategy( guidLow, strategyName )

success = Playerbot.ChangeBotStrategy( guidLow, strategyName, state )

Arguments

number guidLow

Bot GUID low.

Valid numbers: integers from 0 to 4,294,967,295.

string strategyName

Strategy name.

number state (1)

BotState value.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

boolean success
See method description.

Generated on
©2026 - ALE Lua Engine