Salta ai contenuti

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 13
key = "double_strike" # the name of scripts/abilities/<key>.lua
name = "Double Strike"
mana = 30 # the cost of a blow that lands with the move
damage_scalar = 0.9 # what the damage is multiplied by
accuracy_bonus = 0 # percent added to the chance to hit
ignore_armor = false # the blow skips the armor
implemented = true # false: refused with a line
attacker_cliloc = 1060084 # the client's lines for the one who strikes and the one struck; 0 when the script tells its own
defender_cliloc = 1060085
primary = [0x13FE, 0x13FF] # the graphics of the weapons that carry it as their first move
secondary = [] # ... and as their second move

Un 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.

Terminal window
python3 tools/gen_weapon_abilities.py ~/projects/others/ModernUO . > moongate_root/data/weapon_abilities.toml

Creato con ❤️ da Tom

Offrimi un caffè