summoning skill
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
- beetlenaut
- Developer
- Posts: 2825
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: summoning skill
ALL keys and tags only work in specific places. The wiki doesn't show
affect_allies
inside [event], so it does not work there. (You should check the wiki to make sure your code is valid in its location.) If you want a similar result inside [event], you need to use filters to adjust when the event triggers. You can also use [if] statements to adjust more.I don't know what you are trying to show with the code you posted.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
- Celtic_Minstrel
- Developer
- Posts: 2222
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: summoning skill
I think it should work if you use
ability_active
instead of ability
in the filter.Re: summoning skill
Do you mean to modify the code as shown below?Celtic_Minstrel wrote: ↑August 6th, 2021, 12:40 amI think it should work if you useability_active
instead ofability
in the filter.
ability=guardianangel1,guardianangel2→ability_active=guardianangel1,guardianangel2
- Celtic_Minstrel
- Developer
- Posts: 2222
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: summoning skill
Yes. Does that work?
Re: summoning skill
I tried your suggestion. It can't affect allies, it can only affect characters that the player controls. I hope he can have an effect on the characters he controls and allies.
- beetlenaut
- Developer
- Posts: 2825
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: summoning skill
OK, I examined your code. Like I was saying before, you have to adjust the event filter to include allied units. Your code collects the unit to be shielded in the first part. You have a filter that specifies
I didn't test this, but I think it will work.
side=$second_unit.side
. Replace that line with this:
Code: Select all
[filter_side]
[allied_with]
side=$second_unit.side
[/allied_with]
[/filter_side]
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: summoning skill
COOL! ! ! It succeeded. awesome. You are amazing. thank you very much.beetlenaut wrote: ↑August 8th, 2021, 4:16 am OK, I examined your code. Like I was saying before, you have to adjust the event filter to include allied units. Your code collects the unit to be shielded in the first part. You have a filter that specifiesside=$second_unit.side
. Replace that line with this:I didn't test this, but I think it will work.Code: Select all
[filter_side] [allied_with] side=$second_unit.side [/allied_with] [/filter_side]