Re: it wont let me compile scripts.
import"std.zh"
ffc script sign {
void run(int m) {
while(true) {
while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputA) {
Waitframe();
}
Link->InputA = false;
Screen->Message();
while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP) {
Waitframe();
}
Screen->Message(0);
}
}
}
Re: it wont let me compile scripts.
Quote:
Originally Posted by
dingo131
import"std.zh"
ffc script sign {
void run(int m) {
while(true) {
while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputA) {
Waitframe();
}
Link->InputA = false;
Screen->Message(m);
while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP) {
Waitframe();
}
Screen->Message(0);
}
}
}
So it compiles now?
Re: it wont let me compile scripts.
Re: it wont let me compile scripts.
Quote:
Originally Posted by
dingo131
import"std.zh"
ffc script sign {
void run(int m) {
while(true) {
while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputA) {
Waitframe();
}
Link->InputA = false;
Screen->Message();
while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP) {
Waitframe();
}
Screen->Message(0);
}
}
}
thats odd...
it compiled just fine for me. i fail to understand this.
try compiling THIS that you posted. copy and paste it to a new document and save it as signpost.z under the all files type.
then try it. it works fine for me... if youre still having issues then im not sure what to do.
Re: it wont let me compile scripts.
Come on guys, he's got undeclared constants in that script.
At the top of your script file, copy in this:
It needs to be at the top of all script files to load in some number constants that the system uses.
The script was referencing them, but it didn't know where they were.
Make sure you keep all your scripts in the same file too, that's quite important.
EDIT: Oops, you put it in there already.
Missed that, sorry.
Code:
import "std.zh"
ffc script signpost{
void run(int m){
while(true){
while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputL || Link->Z != 0){
Waitframe();
}
Link->InputL = false;
Screen->Message(m);
while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP){
Waitframe();
}
Screen->Message(0);
}
}
}
Try that.
Re: it wont let me compile scripts.
nope still nothing. in fact it won't compile any scripts.
Re: it wont let me compile scripts.
Is the error message still the same? What version are you using?
Re: it wont let me compile scripts.
the message for every script? im using either 2.5 or 2.11 idk
Re: it wont let me compile scripts.
Quote:
Originally Posted by
dingo131
the message for every script? im using either 2.5 or 2.11 idk
he means what build. im using 758...i think it is...?
whatever the latest build you downloaded from shardstorm is.
EDIT: also my scripts are in the same file but the "std.zh" is in a different one and they all work just fine for me.
Re: it wont let me compile scripts.
how do i find out what build it is?
and what do you mean by the whole import std.zh thing?