I
IllarionDS
Guest
Hi everyone.
I'm having a crack at writing a stasis script, using the new "consult" custom combat option, but I'm running into some trouble.
Note the various function declarations using "...(monster eek)", e.g.:
When I run it as written, I get "Bad monster name", which I believe is related to these declarations (though I can't be sure, as the only output I get - despite the debug prints - is:
If I change the declarations to use $monster instead, I get:
(line 100 being the function declaration using $monster)
Does anyone have any idea where I'm going wrong? It's been a couple of months since I tried any real ASH scripting I'm afraid, so I'm a little rusty.
It's obviously work in progress, so please be kind!
I'm having a crack at writing a stasis script, using the new "consult" custom combat option, but I'm running into some trouble.
Note the various function declarations using "...(monster eek)", e.g.:
Code:
void main(int iRound, monster enemy, string sText)
int MaxExpectedDamage(monster eek)
When I run it as written, I get "Bad monster name", which I believe is related to these declarations (though I can't be sure, as the only output I get - despite the debug prints - is:
Code:
Encounter: Knob Goblin Harem Girl
Bad monster name
Script aborted!
If I change the declarations to use $monster instead, I get:
Code:
Encounter: Knob Goblin Harem Girl
')' Expected at line 100 in file scripts\ASHStasis.ash
(line 100 being the function declaration using $monster)
Does anyone have any idea where I'm going wrong? It's been a couple of months since I tried any real ASH scripting I'm afraid, so I'm a little rusty.
It's obviously work in progress, so please be kind!