User Tag List

Results 1 to 6 of 6
  1. #1
    Keese gray0x's Avatar

    Join Date
    Jul 2007
    Age
    21
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fireball graphic replacement thingy

    I'm looking for something along the lines of an FFC script that changes the graphic of the fireball projectile on the screen you're on. If that's not possible, something that covers up the fireballs with an FFC should probably work just as well.

    Oh, and it would be great if it works on b987.

    Thanks.

  2. #2
    Developer ZC Developer
    Gleeok's Avatar
    Ms Pacman Champion! Tetris Champion!

    Join Date
    Apr 2007
    Posts
    3,591
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Code:
    ffc script EWeaponling
    {
     void run(int w_type,int orig_tile, int frames, int anim_spd,  int cset, int flashing)
     {
      bool fl=false;
      if(flashing>0)fl=true;
      eweapon ew;
      while(true)
      { 
       Waitframe(); 
       for(int i = Screen->NumEWeapons(); i > 0; i--)
       {
         ew = Screen->LoadEWeapon(i);
         if(ew->ID==w_type && ew->Misc[0] == 0)
         {
            ew->Misc[0] =1;
            ew->OriginalTile=orig_tile;
           // ew->Tile = orig_tile;
            ew->NumFrames=frames;
            ew->Frame=orig_tile;
            ew->ASpeed=anim_spd;
            ew->CSet=cset;
            ew->Flash=fl;
         }
       }
    }}}
    I'll finish it later, gotta run. Are the fireballs animated at all?
    This post contains the official Gleeok™ seal of approval. Look for these and other posts in an area near you.

  3. #3
    Keese gray0x's Avatar

    Join Date
    Jul 2007
    Age
    21
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah they're animated.

    4 frames if that matters.

  4. #4
    Developer ZC Developer
    Gleeok's Avatar
    Ms Pacman Champion! Tetris Champion!

    Join Date
    Apr 2007
    Posts
    3,591
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Alright try that. D[] args are pretty straightforward. D[] = ID of weapon, starting tile, frames of animation, cset, flashing or not.
    This post contains the official Gleeok™ seal of approval. Look for these and other posts in an area near you.

  5. #5
    Keese gray0x's Avatar

    Join Date
    Jul 2007
    Age
    21
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It doesn't seem to compile right.

  6. #6
    Developer ZC Developer
    Gleeok's Avatar
    Ms Pacman Champion! Tetris Champion!

    Join Date
    Apr 2007
    Posts
    3,591
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    I don't see anything wrong with it. What was the compiler message?

    ..I also added number of animation frames to D[2]. oops, forgot that before.
    This post contains the official Gleeok™ seal of approval. Look for these and other posts in an area near you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •