Can't get *text --> warp* script to work. (combo id?)
#1
Posted 25 January 2010 - 10:50 AM
But I'm having trouble getting it to work....
(posts instructions)
1.Make a transparent 'Autowarp A' combo, and set its combo ID to the constant at the top of the script
By auto warp, they mean the *auto side warp A* combo type, right? And...what combo ID are they referring to? The one of the actual combo (1129 in my case), or the "#" of the Freeform combo I'm applying the script to?
2.Set your sidewarp A to where you want to warp to
did, that, no problem.
3.Apply the script to the screen
...What do they want me to do here? Set the Freeform combo and choose the *message warp* script for it? Or do I need to apply it elsewhere?
4.D0 is the message to play, Link will warp immediately after the message is finished
5.D1 is number of frames to wait before playing the message
Got that, no problem.
Could someone please gimme a hand with this? I spent another half hour looking through the pinned topics (including the one talking about FFCs) and I didn't get any information that helped me out of this problem.
#2
Posted 25 January 2010 - 10:59 AM
#3
Posted 25 January 2010 - 09:44 PM
I assume you just make an FFC with that script applied. I have never used that script, so just experiment or wait until someone who has used it before comes to help.
I tried just applying it to the FCC, but it didn't work.
I spent a good 45 minutes messing around with all the possibilities, and I can't seem to figure it out. It's driving me bananas!
#4
Posted 26 January 2010 - 07:30 PM
By auto warp, they mean the *auto side warp A* combo type, right? And...what combo ID are they referring to? The one of the actual combo (1129 in my case), or the "#" of the Freeform combo I'm applying the script to?
...What do they want me to do here? Set the Freeform combo and choose the *message warp* script for it? Or do I need to apply it elsewhere?
#5
Posted 26 January 2010 - 09:41 PM
If I use the *Auto SideWarp [A]* combotype for my invisible-FFC-Combo, then I warp before the first string even appears.
(and I see no AutoWarp [A]. Just Autoside Warp [A]*)
If I use any other combo type, then the text displays just fine but I don't warp at the end of the string series.
I can go take screenshots of what my setup looks like if that'll help you understand what I'm doing wrong.
Hey, don't worry. I'm just starting to learn programming (JAVA), and writing your instrusctions so that ANY end user can use them without fail is HARD. Our teacher made sure we learned that the hard way. >_>
Edited by Aegix Drakan, 26 January 2010 - 09:42 PM.
#6
Posted 27 January 2010 - 07:09 AM
If I use the *Auto SideWarp [A]* combotype for my invisible-FFC-Combo, then I warp before the first string even appears.
If I use any other combo type, then the text displays just fine but I don't warp at the end of the string series.
B) I assumed it was fairly obvious that they now refer to AutoSide Warp
Hey, don't worry. I'm just starting to learn programming (JAVA), and writing your instrusctions so that ANY end user can use them without fail is HARD. Our teacher made sure we learned that the hard way. >_>
#7
Posted 27 January 2010 - 09:30 AM
You have to have the quest rule 'Messages Freeze All Action' checked. I'll put that in the thread.
...I do have that checked.It still warps me as soon as I enter the screen.
Do I need to have something in particular done on the side-warp screen too?
Ach...alright, when I get back from school I'll get some screenshots up. I don't get where I went wrong (but knowing me, it's probably something silly)
EDIT: Screenshots up!
The combo editor
Page one of the FFC editor (I made sure that the right FFC is selected.
Page 2 of the FFC editor is has nothing checked, so I did not take a picture.
Page 3 of the FFC editor
My sidewarp setup.
My "quest rules".
Hopefully that points out whatever obvious error I made.
Also of note is that I'm using an overworld Dmap, but made it so that strings can be played on it. (unchecked "guys are caves only")
Edited by Aegix Drakan, 27 January 2010 - 03:19 PM.
#8
Posted 30 January 2010 - 07:51 PM
I've kept experimenting but I keep always warping away before the string even plays.
Does the script only work in certain ZC versions, or something?
#9
Posted 01 February 2010 - 12:22 PM
Can you post the exact script you're using?
#10
Posted 01 February 2010 - 05:07 PM
const int CMB_AUTOWARPA = 1012; //Only include this once in the script file
ffc script MessageWarp{
void run(int m, int dly){
Waitframes(dly);
Screen->Message(m);
Waitframe();
this->Data = CMB_AUTOWARPA;
}
}
ffc script RealNPC{
void run(int m, int sfx, int defdir, int d, int ffcnumber, int input){
ffc NPC = this;
if(ffcnumber != 0) Screen->LoadFFC(ffcnumber);
int dx; int dy; int ax; int ay;
int orig = NPC->Data;
if(d == 0) d = 40;
while(true){
dx = NPC->X-Link->X; ax = Abs(dx);
dy = NPC->Y-Link->Y; ay = Abs(dy);
if(defdir != 0){
if(ax < d && ay < d){
if(ax <= ay){
if(dy >= 0) NPC->Data = orig;
else NPC->Data = orig+1;
}else{
if(dx >= 0) NPC->Data = orig+2;
else NPC->Data = orig+3;
}
}else NPC->Data = orig+(defdir-1);
}
if(SelectPressInput(input) && ax < 24 && ay < 24 && Link->Z == 0){
SetInput(input,false);
if(sfx != 0) Game->PlaySound(sfx);
Screen->Message(m);
}
Waitframe();
}
}
bool SelectPressInput(int input){
if(input == 0) return Link->PressA;
else if(input == 1) return Link->PressB;
else if(input == 2) return Link->PressL;
else if(input == 3) return Link->PressR;
}
void SetInput(int input, bool state){
if(input == 0) Link->InputA = state;
else if(input == 1) Link->InputB = state;
else if(input == 2) Link->InputL = state;
else if(input == 3) Link->InputR = state;
}
}
item script Message{
void run(int m){
Screen->Message(m);
}
}
Hope that helps.
#11
Posted 01 February 2010 - 07:31 PM
I apologise for the inconvenience, using a script this simple wouldn't usually cause such an issue.
#12
Posted 01 February 2010 - 08:09 PM
I understand if you don't want to, but if you could send me your quest file I can have a look and find out what's going wrong.
I apologise for the inconvenience, using a script this simple wouldn't usually cause such an issue.
S-SERIOUSLY?! You'd look at through quest file to find out my problem?
You're a really nice guy, Joe! I got no problems with sending it to you. If anything you're the one I'm inconveniancing.
Mind if I send it to you over email, or something?
Edited by Aegix Drakan, 01 February 2010 - 08:17 PM.
#13
Posted 01 February 2010 - 08:12 PM
Email would be great seeing as my uni's proxy blocks file upload sites, it's on my profile.
#14
Posted 15 March 2010 - 10:30 PM
Joe, I'm having the same issue on mine with build 1121. Did you ever figure out the answer to why his did this?
#15
Posted 16 March 2010 - 05:29 AM
I got it to work on my computer but it wouldn't on his I think.
Anyway, you need Messages Freeze All Action and Messages Disappear both checked.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users