Question about abilityfeatures file #460
-
Hello, I am seeing that the abilityfeatures file contains many characters and scripts to modify or create interesting abilities, the question is, can I somehow make an enemy give me a specific object by killing him using this? without having to resort to editing the enemies' own rewards with HW Would something like this example be used to get the item with ID 38 when winning the battle? BattleResult [code=WeaponId] 38 [/code] I appreciate whoever helps me. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hello. Yes, that is possible, although I'm not 100% sure I understood correctly what you want to do. >SA Global+
BattleResult WhenRewardAll
[code=Condition] WeaponId == RegularItem_HolyLance && BattleId == 525 [/code]
[code=BonusItem1] RegularItem_DragonWrist [/code]
[code=BonusItemCount1] 1 [/code] That way, you get a Dragon Wrist as a reward for fighting Valia Pira when someone is equipped with the Holy Lance. EDIT: with the latest commits, using these lines instead don't replace the original first reward by the Dragon Wrist: >SA Global+
BattleResult WhenRewardAll
[code=Condition] WeaponId == RegularItem_HolyLance && BattleId == 525 [/code]
[code=BonusItemAdd] RegularItem_DragonWrist ; 1 [/code] |
Beta Was this translation helpful? Give feedback.
-
Another question regarding Ability features, how could we add the way in which when activating an SA ability, the target of the spells can be changed? For example, when activating SA0, the attack command is for multiple enemies. |
Beta Was this translation helpful? Give feedback.
Hello. Yes, that is possible, although I'm not 100% sure I understood correctly what you want to do.
If it's about "this enemy gives that reward but only when a character has that weapon equipped", then it would be done with something like that:
That way, you get a Dragon Wrist as a reward for fighting Valia Pira when someone is equipped with the Holy Lance.
The battle IDs can be found here.
EDIT: with the latest commits, using these lines instead don't replace the original first reward by th…