User Tag List

Results 1 to 8 of 8

Thread: Help with my fire breathing zora script...

  1. #1
    Octorok Archangel's Avatar
    Join Date
    Apr 2008
    Age
    34
    Posts
    362
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,734
    Level
    13
    vBActivity - Bars
    Lv. Percent
    95.42%

    Help with my fire breathing zora script...

    Code:
    ffc script Zora2{
    	void run(int count){
    		npc zora = Screen->CreateNPC(191);
    		while(zora->isValid()){
    			if(zora->Tile >= 2220){
    				for(count = 1; count >= 20; count++){
    					eweapon fs = Screen->CreateEWeapon(139);
    					fs->X = zora->X;
    					fs->Y = zora->Y;
    					fs->Angle = findAngle(fs->X, fs->Y, Link->X, Link->Y);
    					fs->Damage = 8;
    					fs->Angular = true;
    					fs->Step = 200;
    					PlaySound(13);
    					Waitframes(6);
    				}
    			}
    		}
    	}
    }
    Won't even compile, keep getting T21 error on PlaySound(13); saying it can't match the signature of PlaySound(Float)?

    I changed playsound(13); to a comment and ZC freezes...

    I change CreateNPC to LoadNPC and now it freezes when I try to load my game...

    FFC combo starts on screen init moving continue screen to 67, started find but when I went to screen 7 link walked off the screen and the game froze.

    EDIT: You know what... Fuck it, I'll just make them dive faster and shoot stronger projectiles. :angry: damn critical bugs...
    -Archangel-
    Keeping the ZC Developers busy with heavy beta testing skills and experimentation is what I do best. May ZC be bug free!

    You should seriously check advmath.zh out if you use ZC.

  2. #2
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,144
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.98%

    Re: Help with my fire breathing zora script...

    I think you should stick a Waitframe() somewhere outside of the if block, just in case it is ever false, which would then freeze the game (that's the freeze you got).

    Also, PlaySound is a method of the Game object. Eg, Game->PlaySound

    I'm not sure what you're talking about in the "walking off screen" line, but it's probably the same freeze bug as above.
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

  3. #3
    Octorok Archangel's Avatar
    Join Date
    Apr 2008
    Age
    34
    Posts
    362
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,734
    Level
    13
    vBActivity - Bars
    Lv. Percent
    95.42%

    Re: Help with my fire breathing zora script...

    I managed to get the script working with a few bugs. Is there a way to tell if the Zora has it's head above water?
    -Archangel-
    Keeping the ZC Developers busy with heavy beta testing skills and experimentation is what I do best. May ZC be bug free!

    You should seriously check advmath.zh out if you use ZC.

  4. #4
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    33
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,305
    Level
    26
    vBActivity - Bars
    Lv. Percent
    9%

    Re: Help with my fire breathing zora script...

    Check for what tile it's using?

  5. #5
    Octorok Archangel's Avatar
    Join Date
    Apr 2008
    Age
    34
    Posts
    362
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,734
    Level
    13
    vBActivity - Bars
    Lv. Percent
    95.42%

    Re: Help with my fire breathing zora script...

    Code:
    ffc script Zora2{
    	void run(){
    		npc zora = Screen->CreateNPC(191);
    		while(zora->isValid()){
    			if(zora->Tile >= 2180){
    				for(int count = 1; count >= 20; count++){
    					eweapon fs = Screen->CreateEWeapon();
    					fs->X = zora->X;
    					fs->Y = zora->Y;
    					fs->Angle = findAngle(fs->X, fs->Y, Link->X, Link->Y);
    					fs->Damage = 8;
    					fs->Angular = true;
    					fs->Step = 300;
    					Game->PlaySound(13);
    					Waitframes(6);
    				}
    			}
    			Waitframe();
    		}
    	}
    }
    No luck, it breathes constantly? Perhaps I'm doing something wrong then. Is their another way of making it breathe a stream of 10 flames but only if it's head is above water?
    -Archangel-
    Keeping the ZC Developers busy with heavy beta testing skills and experimentation is what I do best. May ZC be bug free!

    You should seriously check advmath.zh out if you use ZC.

  6. #6
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,144
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.98%

    Re: Help with my fire breathing zora script...

    Code:
    ffc script Zora2{
    	void run(){
    		npc zora = Screen->CreateNPC(191);
    		while(zora->isValid()){
    			if(zora->Tile >= 2500){
    				for(int count = 0; count < 10; count++){
    					eweapon fs = Screen->CreateEWeapon();
    					fs->X = zora->X;
    					fs->Y = zora->Y;
    					fs->Angle = findAngle(fs->X, fs->Y, Link->X, Link->Y);
    					fs->Damage = 8;
    					fs->Angular = true;
    					fs->Step = 300;
    					Game->PlaySound(13);
    					Waitframes(6);
    				}
    			}
    			Waitframe();
    		}
    	}
    }
    Try that. The big issue was that by default, the zora tiles are ALL >= 2180. You want them to be >= 2500 (unless you've moved them around).

    Also, I fixed the for loop. You should always do it like that, unless you have reason to do so otherwise.
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

  7. #7
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    33
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,305
    Level
    26
    vBActivity - Bars
    Lv. Percent
    9%

    Re: Help with my fire breathing zora script...

    Heh, I had to have a little chuckle when I read that.

    Code:
    (int count = 1; count >= 20; count++)
    Set count to 1, loop while count is greater than or equal to 20?

  8. #8
    Octorok Archangel's Avatar
    Join Date
    Apr 2008
    Age
    34
    Posts
    362
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,734
    Level
    13
    vBActivity - Bars
    Lv. Percent
    95.42%

    Re: Help with my fire breathing zora script...

    Well, I'm actually using different tiles for my new enemies, you'll like the new robie graphics. But when I checked the tiles, I wasn't even close... I got confused you see, it's 7000 more then that at 9180, I double checked the thousands place and read the tile for the normal Zora.

    Anyways, thanks for help guys?

    Fire Breathing Zora2s now were talking, die link die!
    http://www.armageddongames.net/forum...10#post1221710
    -Archangel-
    Keeping the ZC Developers busy with heavy beta testing skills and experimentation is what I do best. May ZC be bug free!

    You should seriously check advmath.zh out if you use ZC.

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
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social