[closed] How to use "unit.attacks.attack_name"
Moderator: Forum Moderators
- ZombieKnight
- Posts: 231
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
[closed] How to use "unit.attacks.attack_name"
How to use "unit.attacks.attack_name" https://wiki.wesnoth.org/LuaAPI/types/unit when the attack_name is two words long(throwing knives)?
Last edited by ZombieKnight on March 31st, 2024, 12:33 pm, edited 1 time in total.
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills
- ZombieKnight
- Posts: 231
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: How to use "unit.attacks.attack_name"
And how to use "unit.attacks.attack_name" when I don't know the attack_name but I have it stored in variable(wml.variables["weapon.name"])?
For context: I'm trying to modify "weapon special name" of the weapon I have stored in wml.variables["weapon.name"] (after some filtering so I know that my special is there)?
For context: I'm trying to modify "weapon special name" of the weapon I have stored in wml.variables["weapon.name"] (after some filtering so I know that my special is there)?
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills
Re: How to use "unit.attacks.attack_name"
unit.attacks["throwing knives"]
Then iterate over attacks and compare data.
Then iterate over attacks and compare data.
Maintainer of Ageless Era. Ravana's Multiplayer Works
- ZombieKnight
- Posts: 231
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: How to use "unit.attacks.attack_name"
Idk, why I haven't responded...
Thanks!!! that's what I've been looking for.
Thanks!!! that's what I've been looking for.
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills