Is it possible to remove effects from Objects using [remove_object]?
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
Is it possible to remove effects from Objects using [remove_object]?
Code: Select all
[event]
id=remove_object_one
first_time_only=no
name=side turn
[remove_object]
ability=oneability
object_id=objectone
[/remove_object]
[/event]
Last edited by WhiteWolf on May 16th, 2021, 11:54 am, edited 1 time in total.
Reason: added [code] for readability
Reason: added [code] for readability
Re: Is it possible to remove effects from Objects using [remove_object]?
Moved to WML Workshop.
This code looks good to me, unless I too am missing something, it should work like this.
[remove_object] indeed takes no [filter] tag, so this event should remove the
If it doesn't work, can you go into a bit more detail of what you're doing? Show how and when you apply the object in the first place, as maybe something is wrong with that?
May also be easier if you attach your entire scenario and utils where these happen.
This code looks good to me, unless I too am missing something, it should work like this.
[remove_object] indeed takes no [filter] tag, so this event should remove the
objectone
object from every unit that has the oneability
at the time when the event fires.If it doesn't work, can you go into a bit more detail of what you're doing? Show how and when you apply the object in the first place, as maybe something is wrong with that?
May also be easier if you attach your entire scenario and utils where these happen.
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
- IIIO_METAL
- Posts: 202
- Joined: January 18th, 2017, 5:03 pm
- Location: japan
Re: Is it possible to remove effects from Objects using [remove_object]?
The syntax is correct, so maybe the value is wrong?
Or is it possible that object_id is not set?
By the way, these two are my recent mistakes.
Or is it possible that object_id is not set?
By the way, these two are my recent mistakes.
Creator of "Mountain Witch" & "Castle of evil spirit"