Jump to content

Photo

Question concerning tall grass...


  • Please log in to reply
22 replies to this topic

#1 Xiion

Xiion

    Senior

  • Members

Posted 04 January 2008 - 11:05 PM

I am wondering if anyone knows of a way to make the tall grass combo uncuttable, while maintaining the walkover animation. Either that, or a way to make tall grass not drop hearts and whatnot when cut.

Thanks in advance, my dungeons will appreciate it

#2 Plissken

Plissken

    What's with these homies dissing our girls?

  • Members

Posted 04 January 2008 - 11:09 PM

Eh, I'm sorry but I don't think so since it is just a specific combo type. You might be able to sprite an FFC that follows you to look like a tall grass animation, but for that you'd have to be using 2.5 and know how to script or get someone to script it for you.

Edited by Plissken, 04 January 2008 - 11:09 PM.


#3 Xiion

Xiion

    Senior

  • Members

Posted 04 January 2008 - 11:18 PM

Well foo..... I was kinda hoping that wasn't the case... now to try and find a way to fake it ^^

Thanks!



#4 Joe123

Joe123

    Retired

  • Members

Posted 05 January 2008 - 07:52 AM

QUOTE(Xiion @ Jan 5 2008, 04:05 AM) View Post

I am wondering if anyone knows of a way to make the tall grass combo uncuttable, while maintaining the walkover animation. Either that, or a way to make tall grass not drop hearts and whatnot when cut.

Thanks in advance, my dungeons will appreciate it


You could use Shallow Water combos, and change the tile for the little thing that it puts over Link.
Should accomplish pretty much the same thing.


Wouldn't be hard to script if you wanted though.

#5 Xiion

Xiion

    Senior

  • Members

Posted 05 January 2008 - 12:18 PM

The only problem with that idea joe, is that I've already used the shallow water combo for, well, shallow water. And call me lazy, but I really don't want to rework an entire dungeon or two just to make another dungeon look better.

I suppose I could script it, but I've never scripted before, and being so close to completion, I think learning to script at this point for such a small detail is a matter of "too little, too late"... But thank you for the idea, perhaps if I make another quest i'll consider it.



#6 Joe123

Joe123

    Retired

  • Members

Posted 05 January 2008 - 12:32 PM

CODE
ffc script tallgrasscombo{
    void run(int grasstile, int cmb){
    if(cmb == 0){cmb = 35;}
    while(true){
        if(Screen->ComboT[ComboAt(Link->X+8,Link->Y+8) == cmb){
            this->Data = grasstile;
            this->X = Link->X;
            this->Y = Link->Y;
        }else{this->Data = ??;}// replace the '??' here with a transparent combo that is NOT COMBO 0
    Waitframe();
    }
}


You need to do the noted line (// denotes a noted line), and D0 of the script is the combo for the tile you want to appear over Link if he is standing on a Left Statue combo (this is default, if you enter a new number into D1, that will be the combo that becomes unslashable tall grass).

There you go, if you want it.

#7 Xiion

Xiion

    Senior

  • Members

Posted 05 January 2008 - 12:43 PM

Well... thank you. I appreciate it.

I think I understand what your telling me to do... let me go fiddle with it and see if I can't figure this out...

#8 Joe123

Joe123

    Retired

  • Members

Posted 05 January 2008 - 12:52 PM

Dyu know how to compile a script?

#9 Xiion

Xiion

    Senior

  • Members

Posted 05 January 2008 - 01:14 PM

hehe.... short answer, no. Haven't really looked at scripting before (wanted to keep the quest simple, since its my first quest).

I've been looking for a tutorial (and been getting distracted doing so), but I havent found one yet.
Care to enlighten?

#10 Feenicks

Feenicks

    still the harpy guy

  • Members
  • Real Name:Robert
  • Location:dn ǝpᴉs ʇɥƃᴉɹ

Posted 05 January 2008 - 01:28 PM

Voila.
Hope that helps.

#11 Xiion

Xiion

    Senior

  • Members

Posted 05 January 2008 - 01:58 PM

Thanks pheonix, that really helps.

Plunking through the errors i end up with:

Pass 4: Type-Checking/Completing function symbol Tables/constant folding
Tmp, line 6: error T28 That pointer type does not hace a function comboT

I have a feeling this is what joe was telling me about, but i can't make a correlation between what he said and what's wrong... (whats that D0/D1 refering to in the code?)

#12 Joe123

Joe123

    Retired

  • Members

Posted 05 January 2008 - 02:12 PM

CODE
ffc script tallgrasscombo{
    void run(int grasstile, int cmb){
    if(cmb == 0){cmb = 35;}
    while(true){
        if(Screen->ComboT[ComboAt(Link->X+8,Link->Y+8)] == cmb){
            this->Data = grasstile;
            this->X = Link->X;
            this->Y = Link->Y;
        }else{this->Data = ??;}// replace the '??' here with a transparent combo that is NOT COMBO 0
    Waitframe();
    }
}


Sorry, error on my part, missed out a square bracket.
Try using that one, should work fine.

Make sure to have import "std.zh" at the top of the script though, otherwise it won't work.

D0 and D1 are ffc specific arguments in the ffc that you attach the script to.
Click on the arguments tab and just put the numbers into the relevant boxes.

#13 Xiion

Xiion

    Senior

  • Members

Posted 05 January 2008 - 03:11 PM

Alright, i have the script compiled, but I'm having trouble getting the freeform combo to work... and im not sure whats wrong...

When I place the ffc, the moment i get onto the screen, it shows for a brief second then dissappears...
Any idea whats wrong?

#14 Akkabus

Akkabus

    Illustrious

  • Members

Posted 05 January 2008 - 03:42 PM

maybe you can use shallow water instead. all you have to do is set the shallow water tiles to look like tall grass. the problem is that you'll forfeit shallow water.

edit: you'll also need to change the ripple animation under quest > graphics > sprites > weapons > MISC: ripples.

Edited by Akkabus, 05 January 2008 - 03:48 PM.


#15 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 05 January 2008 - 06:46 PM

Or, perhaps, Joe could give you a more detailed explaination. I want this myself too and I don't get the D0 and D1 part. I had to put 2 "}"'s in the script to, so that s*cked, because it was hard to understand the errors from ZC.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users