Jump to content

Photo

Request


  • Please log in to reply
5 replies to this topic

#1 Bayta

Bayta

    Follower of Destiny

  • Members
  • Real Name:Robin Evans
  • Location:Suffolk County, NY

Posted 06 April 2007 - 12:08 PM

In games like aLttP, LA/DX, OoS/A, etc. You could jump off cliffs. I was wondering if it would be possible to do that with scripting in ZC. If it is possible, can someone make it for me? I would like it to be an ffc script that makes it so that when you step on the ffc, Link jumps and moves down until he reaches the next walkable combo. (Just like in the GB games)

#2 Limzo

Limzo

    _

  • Members

Posted 06 April 2007 - 01:00 PM

I shall see what I can do...

#3 Bayta

Bayta

    Follower of Destiny

  • Members
  • Real Name:Robin Evans
  • Location:Suffolk County, NY

Posted 06 April 2007 - 05:27 PM

Thanks, Limzo. Like I said, I don't know if it's 100% possible yet. icon_confused.gif So don't stress over it. icon_smile.gif

#4 Limzo

Limzo

    _

  • Members

Posted 07 April 2007 - 02:27 AM

I have a vague idea of how I'll do it, and you will only be able to jump in particular places, but at least it is something. Do you want shadows to appear underneath link?

Okay, I've got started on it. It uses ZScript, not Zasm.

Note, it IS NOT FINISHED!
Do not try and use it. I'm only posting it here because I can't get something to work.

Please can someone help me? I need it to recognise that FFC 1 is on the screen, and I need to give it a name to reffer to (JumpCombo), but I don't want it to put FFC 1 on the screen, because FFC 1 is already there.

Also, it tells me this, "LINE 7: SYNTAX ERROR, UNEXPECTED IF, EXPECTING SEMICOLON, ON TOKEN IF" What does that mean?
CODE
import "std.zh"
ffc script cliff_jumping
{
     void run()
     {
         int JumpCombo = FFC (1)
         if Link->Y = JumpCombo->Y;
         {
              Link->Y = Link->Y - 8;
              PlaySFX 11;
              int Shadow = Screen->LoadFFC (2);
              Shadow->Y = Link->Y + 16;
         }
     }
}

Edited by Limzo, 07 April 2007 - 03:26 AM.


#5 Fire Wizzrobe

Fire Wizzrobe

    Master

  • Members
  • Real Name:T

Posted 07 April 2007 - 08:35 PM

CODE
import "std.zh"
ffc script cliff_jumping
{
     void run()
     {
         ffc JumpCombo = Screen->LoadFFC(1);
         if (Link->Y = JumpCombo->Y)
         {
              Link->Y = Link->Y - 8;
              Game->PlaySFX(11);
              ffc Shadow = Screen->LoadFFC(2);
              Shadow->Y = Link->Y + 16;
         }
     }
}


I edited it. It's not guaranteed to work, though. Make sure when you use an if statement, you use == instead of = (remember, == is for comparing if something is equal, and = is for assigning objects and values) and enclose the condition with parentheses. You also forgot a semi-colon and you don't need a semi-colon at the end of an if, just the curly braces. icon_smile.gif You also need to use Game->PlaySFX to play a sound. Shadow and JumpCombo need to be declared as ffcs, not ints because they are not numbers icon_razz.gif.

Edited by Fire Wizzrobe, 07 April 2007 - 08:41 PM.


#6 Limzo

Limzo

    _

  • Members

Posted 08 April 2007 - 02:45 AM

Thanks, maybe I can continue with this now.
Eh, it's not working so well. I had to strip it down to the bare minimum and make it really limited, but it still wouldn't move link properly.

Edited by Limzo, 08 April 2007 - 03:11 AM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users