a) Can you post the definition for the 'Intense X Action' action? I will test it.

b) With this inline function ‘wed_SetMainScript’ you can set the new script - this function is defined as:

typedef enum {
WCMD_NULL,

WCMD_GETDIRECTORY,
WCMD_REDRAWALL,
WCMD_RECALCULATE_LEVEL,
WCMD_NDEF_4,
WCMD_NDEF_5,
WCMD_NDEF_6,
WCMD_NDEF_7,

WCMD_LOADLEVEL,
WCMD_SETMAINSCRIPT, // ab v6.873


inline int wed_SetMainScript(CWedInterface & wpi,const char * name, int len)
{
return wpi.DoCommand(0, WCMD_SETMAINSCRIPT, (void*)name, len);
}