User Tag List

Results 1 to 10 of 10

Thread: Flameshot Weapon

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

    Flameshot Weapon

    And seeing as the enemys get all those new uber-weapons, I thought I better give Link one too.
    I call it Flameshot


    And it's stupidly over-powerful =P
    But quite fun though!
    Might be useable if you make it take up magic in the item editor.
    Code:
    item script flameshot{
    	void run(int d,int s,int t,int c,int n,int a){
    		if(Screen->NumNPCs() > 0){
    		lweapon f = Screen->CreateLWeapon(31);
    			f->Tile = t; f->OriginalTile = t;
    			f->NumFrames = n; f->ASpeed = a;
    			f->CSet = c;
    		 	f->Step = s;
    			f->Damage = d;
    			f->X = Link->X;
    			f->Y = Link->Y;
    			f->Z = Link->Z;
    			npc e = Screen->LoadNPC(Rand(Screen->NumNPCs())+1);
    		 	f->Angular = true;
     			f->Angle = ArcTan((e->X-Link->X),(e->Y-Link->Y));
    			Game->PlaySound(13);
    		}
    	}
    }
    What it does is pick a random enemy on the screen, and shoot a fireball at it =D
    A bit powerful =P

    D0: Damage of fireball
    D1: Speed of fireball
    D2: Tile to use
    D3: CSet
    D4: Number of frames of animation
    D5: Speed of animation


    Oh yeah, if there're no enemies on the screen, it won't do anything.
    So you might want to make it take up magic in the script?
    I can do that if anyone wants me to.

  2. #2
    Wizrobe C-Dawg's Avatar
    Join Date
    Jan 2002
    Posts
    4,205
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,612
    Level
    24
    vBActivity - Bars
    Lv. Percent
    99.92%

    Re: Flameshot Weapon

    Rapid fire or GTFO

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

    Re: Flameshot Weapon

    It is rapid fire!
    Press the button again! =P


    I have to make a global script code to make it rapid fire and meh.
    I might do that later, but what I was planning on doing with it next was making it actually shoot a wand magic projectile, so that it'd trigger wand magic flags, and then if there were no enemies on the screen, it could check for a wand flag and shoot at that.
    Then it'd be quite a nice upgrade to the wand, no?

    I suppose I should probably put a random angle generator in for when there's no enemies too.

  4. #4
    Wizrobe
    Join Date
    Dec 2006
    Age
    29
    Posts
    3,693
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,936
    Level
    28
    vBActivity - Bars
    Lv. Percent
    42.98%

    Re: Flameshot Weapon

    Wow, this could be interesting.
    Link: Stand down Ganon. I have a flamethrower and I'm not afraid to use it! :)

    Regardless, this could be a useful item, as long as you set it in the item editor to use an insane amount of magic.
    Quote Originally Posted by rock_nog View Post
    Well of course eveything's closed for Easter - don't you know of the great Easter tradition of people barricading themselves up to protect themselves from the return of Zombie Christ?


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

    Re: Flameshot Weapon

    Yah, it's a bit powerful really.

    But then again, the flamethrower and homing laser in the extra enemy attack thread are too =P

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

    Re: Flameshot Weapon

    ok, mark 2:
    Code:
    item script flameshot{
    	void run(int d,int s,int t,int c,int n,int a){
    	int i; int b;
    	int fx; int fy;
    		if(Screen->NumNPCs() > 0){
    			npc e = Screen->LoadNPC(Rand(Screen->NumNPCs())+1);
    			go(e->X,e->Y,d,s,t,c,n,a);
    		}else{
    			for(i=0;i<176;i++){
    				if(Screen->ComboF[i] == 76 || Screen->ComboI[i] == 76){
    					b = i;
    					i = 176;
    				}
    			}
    			if(b>0){
    				fy = Floor(b/16);
    				fx = b-(fy*16);	
    				go(fx*16,fy*16,d,s,t,c,n,a);
    			}else go(Rand(256)+1,Rand(168)+1,d,s,t,c,n,a);
    		}
    	}
    	void go(int x,int y,int d,int s,int t,int c,int n,int a){
    	lweapon f = Screen->CreateLWeapon(13);
    		f->Tile = t; f->OriginalTile = t;
    		f->NumFrames = n; f->ASpeed = a;
    		f->CSet = c;
    	 	f->Step = s;
    		f->Damage = d;
    		f->X = Link->X;
    		f->Y = Link->Y;
    		f->Z = Link->Z;
    	 	f->Angular = true;
     		f->Angle = ArcTan((x-Link->X),(y-Link->Y));
    		Game->PlaySound(32);
    	}
    }
    It now creates a Wand Magic sprite, which will first attack all enemies on the screen, then go for any Wand Magic Flags (76), then just shoot off in random directions.
    Fraid it's not rapid fire just yet though =P

  7. #7
    Wizrobe The_Amaster's Avatar
    Join Date
    Dec 2005
    Location
    St. Mystere
    Age
    32
    Posts
    3,803
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,810
    Level
    28
    vBActivity - Bars
    Lv. Percent
    26.1%

    Re: Flameshot Weapon

    ...this just might be the item I've been looking for for level 8. And I assume that I can get the second script to attack any flag I want if I change the number in the code? EDIT: Ohh, Ohh, Joe, how could you set it up so that the new "Custom Flags" when triggered activate screen secrets and how would you set the secret combo? I'm thinking a series of weapons, a thunder shooter, a fire shooter, a wind shooter...

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

    Re: Flameshot Weapon

    Oh no, I'm afraid it's not that simple.
    You can't just change the number of the flag in the script; it works like that because the system actually makes a wand magic projectile, so that's why I sent it to attack the wand flag.

    I might be able to change it so that the script makes a custom projectile, and sends it at flag 98 though, and then when it hits flag 98, trigger the screen's secrets?
    It'd require changing the combotype underneath Link's foot though, so you'd have to be careful what combos you put in that room.

  9. #9
    Wizrobe The_Amaster's Avatar
    Join Date
    Dec 2005
    Location
    St. Mystere
    Age
    32
    Posts
    3,803
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,810
    Level
    28
    vBActivity - Bars
    Lv. Percent
    26.1%

    Re: Flameshot Weapon

    Ah, well if it's too much trouble nevermind. Although...
    It'd require changing the combotype underneath Link's foot though, so you'd have to be careful what combos you put in that room.
    Don't quite follow here.

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

    Re: Flameshot Weapon

    Nah, shouldn't be too bad.
    I've acquired a lot of free time at the moment so I'm looking for things to do.

    Well, the only way to trigger secrets via script is to put a trigger combotype underneath Link's feet.

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