Jump to content

Photo

The Master of Power attempts to script.


  • Please log in to reply
2 replies to this topic

#1 Alestance

Alestance

    Saint Alestance - Eliminator of the ZGP format

  • Members
  • Real Name:Lonk
  • Location:Pennsylvania

Posted 06 July 2007 - 03:02 PM

Alrighty, I had a little bit of C++(Shouldn't ZScript be called Z++ anyway? icon_lol.gif) and I was hoping it would help.

It does, a little, but I got this error. icon_neutral.gif

The script compiles fine but doesn't work.

CODE

import "std.zh"

fcc_script test
{
void run()
     {
           Link->InputStart = false;

            if(Link->InputStart)
{
                Link->Pitwarp(0,8)
}
}
}


Meh its probably the same mystake I made before when I first tried. Wish I commited it to memory icon_neutral.gif

#2 Fire Wizzrobe

Fire Wizzrobe

    Master

  • Members
  • Real Name:T

Posted 06 July 2007 - 05:42 PM

This is L's start script, yours needs to loop (forever; and I think the script only runs for one frame if it doesn't, but I may be incorrect) and the 7th line isn't necessary.

And it's ffc script, not fcc_script. icon_razz.gif
CODE

ffc script PressStart {
void run()

  while(true){
   if (Link->InputStart) {
     Link->PitWarp(0,0); //replace 0s as necessary.
   }
  }
}
}

Edited by Fire Wizzrobe, 06 July 2007 - 05:52 PM.


#3 Alestance

Alestance

    Saint Alestance - Eliminator of the ZGP format

  • Members
  • Real Name:Lonk
  • Location:Pennsylvania

Posted 06 July 2007 - 06:11 PM

thanks, but I already got my answer at AGN icon_neutral.gif


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users