Adding custom Actions

Minimal version: 1.05

 

Adding custom Actions

Important notes

This is a really important note and that's why it goes first!

ALWAYS use custom Actions on custom SuperWeapons!

Yes, the custom Actions aren't 100% bugless (see below), but unlike the original "unused" Actions, they do not cause Internal Errors. The reason for the Internal Errors caused by (most?) "unused" Actions is that they actually do have a function, even if that's a minor one! As soon as the AI uses it, it uses it "the wrong way" (or something like that), and you get that sweet little IE window!

Also important: Just like the original actions, every custom actions can only be used once, which shouldn't be a problem, since you can add enough of them...

How to

First, create the following list section:

[MousePointers]
NewPara=259,10,4,516,-1 ;example

The list works like this:

NewActionName=[StartFrame],[NumberOfFrames],[AnimationInterval],[MinimapFrame],[MinimapNumberOfFrames]

The frames are all related to the mouse.sha of course. Note that the frame numbers are zero-based, so frame number 260 in SHP Builder would be 259 in the tag!

The example above would create a new ParaDrop mouse pointer. You can add as many custom actions to that list as you like!

After doing that, you can use your Action on any SuperWeapon:

Action=NewPara ;simply the name of a mouse pointer declared in [MousePointers]

Problems

All these problems will probably be fixed in the future, I just can't tell when...

  • The cursor would only animate (if it has multiple frames) if you press a mouse button. It is unknown why that is...
  • If you move the cursor over shrouded area, the standard mouse cursor would show.
  • Minimap cursors don't work.