Help needed for "name=attacker hits" event
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.
- pipapopinguin
- Posts: 35
- Joined: November 3rd, 2019, 10:36 am
Help needed for "name=attacker hits" event
Code: Select all
#define WEAPON_SPECIAL_BLASTINGBURST
[dummy]
id=blasted_burst
name= "unpredictable inferno"
[/dummy]
[/specials]
[event]
first_time_only=no
id=burst_event
name=attacker hits
[filter_attack]
name=dragonstaff2
[/filter_attack]
[message]
message="I've been triggered"
[/message]
[/event]
[+abilities]
#enddef
Code: Select all
[attack]
name=dragonstaff2
description=_"ol'blasting burst"
type=pierce
range=ranged
damage=1
number=1
icon=attacks/dragonstaff.png
[specials]
{WEAPON_SPECIAL_BLASTINGBURST}
[/specials]
[/attack]
Re: Help needed for "name=attacker hits" event
To be honest, I find it strange that this even starts with the game. Opening and closing tags don't match: you close [specials], leaving it currently in an [attack], putting an event there (which won't work in an [attack] tag), and then you open a [+abilities] tag, that's getting closed by [/specials].
The correct way to do this with a macro like this would be:
The correct way to do this with a macro like this would be:
Code: Select all
#define WEAPON_SPECIAL_BLASTINGBURST
[dummy]
id=blasted_burst
name= "unpredictable inferno"
[/dummy]
[/specials]
[/attack]
your event here
[+attack]
[+specials]
#enddef
Main UMC campaigns: The Ravagers - now for 1.16, with new bugs!
Old UMC works: The Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny
Old UMC works: The Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny
- pipapopinguin
- Posts: 35
- Joined: November 3rd, 2019, 10:36 am
Re: Help needed for "name=attacker hits" event
This helped a lot, thanks