weapon_abilities.toml
Le mosse speciali delle armi di data/weapon_abilities.toml: le tredici mosse dell’era AOS e quali
armi le portano. Il file può mancare: nessuna arma ha allora una mossa.
[[ability]]id = 7 # the number the client sends to select the move, 1 to 13key = "double_strike" # the name of scripts/abilities/<key>.luaname = "Double Strike"mana = 30 # the cost of a blow that lands with the movedamage_scalar = 0.9 # what the damage is multiplied byaccuracy_bonus = 0 # percent added to the chance to hitignore_armor = false # the blow skips the armorimplemented = true # false: refused with a lineattacker_cliloc = 1060084 # the client's lines for the one who strikes and the one struck; 0 when the script tells its owndefender_cliloc = 1060085primary = [0x13FE, 0x13FF] # the graphics of the weapons that carry it as their first movesecondary = [] # ... and as their second moveUn numero fuori da 1 a 13, un numero o una chiave usati due volte, una chiave che non è un id di script, un mana o un cliloc sotto 0, un moltiplicatore di 0 o meno, una grafica fuori da 0 a 65535, una grafica che è la prima mossa (o la seconda) di due abilità, e un’abilità che è insieme la prima e la seconda mossa di una grafica fermano il server all’avvio.
La tabella è generata dall’elenco per arma di ModernUO da tools/gen_weapon_abilities.py, che aggiunge anche la gemella
rovesciata di una grafica (il template che condivide il suo base_id): si modifica lo script e lo si esegue, non il file.
python3 tools/gen_weapon_abilities.py ~/projects/others/ModernUO . > moongate_root/data/weapon_abilities.tomlCreato con ❤️ da Tom
