Age of Mythology: Retold

Age of Mythology: Retold

View Stats:
Editor: XS Code Snippet
Threads at https://aom.heavengames.com/cgi-bin/forums/display.cgi?action=st&fn=47&tn=30276

But I wanted more eyes on this.
I'm getting the error 255 is not a valid variable type.

Things I've tried:
In trigger > XS Code Snippet

void AGetNewDamage()
{

}
AGetNewDamage();



#2
Tried putting this in an XS file and then doing Trigger > XS Scripts and adding the script there.
void AGetNewDamage()
{

}

then adding the
AGetNewDamage();
to a Trigger > XS Code Snippet

I've reverted back to this because idk why its not working. I can't make custom functions at all. I've tried int and just return(5); and then calling int asdflkasdjfak = AGetNewDamage();

Still the same error.
< >
Showing 1-1 of 1 comments
[13th] Void Sep 7, 2024 @ 3:44pm 
I found the issue, but the devs will need to fix
the script files get included at the BOTTOM of the trigtemp.xs file. THAT is why it isn't working.

Pain in the but to (for me because i dont have stuff memorized yet) i have to make a trigger in the editor how i want it to be, playtest the map to generate the trigtemp.xs and copy the function for the trigger. place it in the xs script file and then delete the trigger from the trigger editor.

Super annoying.
All they'd need to do is do the include("trigtemp.xs"); at the top of the file instead of the bottom and it'd work.
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Sep 7, 2024 @ 8:49am
Posts: 1