Page MenuHomeFeedback Tracker

Scripting command removeAllActions has invalid definition
Closed, ResolvedPublic

Description

The scripting command removeAllActions is defined on the wiki as a unary operator with a lhs operand, which is not possible.
Syntax: unit removeAllActions

The in-game script help however, shows it as: unit removeAllActions index

Since the command removes all actions for the unit, the index operand seems to be a dummy operand.

The syntax should be: removeAllActions unit
like all the other removeAll* commands.

Details

Legacy ID
198397677
Severity
Minor
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Additional Information

Event Timeline

MulleDK19 edited Additional Information. (Show Details)
MulleDK19 set Category to Scripting.
MulleDK19 set Reproducibility to Always.
MulleDK19 set Severity to Minor.
MulleDK19 set Resolution to Fixed.
MulleDK19 set Legacy ID to 198397677.May 7 2016, 12:49 PM
MulleDK19 edited a custom field.

Can confirm this, it removes all actions but needs index parameter. Makes no sense.

I think someone was really lazy and just copied removeAction. It has the EXACT same syntax, description and example. Except for the fact that it doesn't show the RHS operand in the example.

removeAction: http://img827.imageshack.us/img827/6537/somethingz.png
removeAllActions: http://img163.imageshack.us/img163/7450/somethinga.png

Yeah seems that way. They should really change now because once it hits beta then the syntax will never change because it might break too many scripts.

removeAllActions unit is ideal syntax as you mentioned, lets just hope it is not too late.

X39 added a subscriber: X39.May 7 2016, 12:49 PM
X39 added a comment.Jul 3 2013, 8:11 PM

How long can this take Oo omg ...
its now close to one month since this was reported so?

Come on devs do it before the release!

Bump!

Hope DarkDruid scheduling this tag!

Should be fixed in next dev branch update.
This fix won't be a part of tomorrow's stable branch update. You can expect it in stable branch with update 1.06.

Every time I see assigned => DarkDruid it brightens my day! :)

Mass closing resolved issues not updated since November.