User Tag List

Results 1 to 10 of 10

Thread: Silver Arrow As Separate Item

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quest Builder Anarchy_Balsac's Avatar
    Join Date
    Nov 2005
    Posts
    751
    Mentioned
    11 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    2,595
    Level
    16
    vBActivity - Bars
    Lv. Percent
    64.72%
    It may be easier to do if you replace the bows with scripted bows. This will allow you to do a simple:

    Code:
    If (arrows wooden)
      Then deduct arrows
    If (arrows silver)
      Then deduct new variable for silver arrow count
    As a bonus, if you later decide you want to do more tweeks, like, say, make the Fairy Bow do a Tri-Shot, you can.

  2. #2
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,112
    Level
    11
    vBActivity - Bars
    Lv. Percent
    46.23%
    Quote Originally Posted by Anarchy_Balsac View Post
    It may be easier to do if you replace the bows with scripted bows. This will allow you to do a simple:

    Code:
    If (arrows wooden)
      Then deduct arrows
    If (arrows silver)
      Then deduct new variable for silver arrow count
    As a bonus, if you later decide you want to do more tweeks, like, say, make the Fairy Bow do a Tri-Shot, you can.
    I had thought about that... but probably not going to go that route. I did, after much debuging and testing come up with a solution (its mixed with my RPG Counter Script so try to ignore that)...

    Code:
    import "std.zh"
    
    const int CR_LIFEMIRRORMAX = 8; //Life Mirror for Max HP display on SS script 2
    const int CR_MAGICMIRRORMAX = 9; //Magic Mirror for Max MP display on SS script 3
    const int CR_LIFECUR = 10; //Life Current Mirror Script 4
    const int CR_MAGICCUR = 11; //Magic Current Mirror Script 5
    const int CR_SARROW = 18;// Silver Arrow Counter set to Script 12
    
    //MaxHP and MaxMP for max values
    
    
    global script Active
    {
    	void run()
    	{
    		while(true)
    		{
    			GetEquipmentA();
    			GetEquipmentB();
    			SilverArrowStatus();
    			CounterUpdate();
    			Waitdraw();
    			Waitframe();
    		}
    	}
    }
    
    void SilverArrowStatus()
    {
    	int j;
    	for(int i = Screen->NumLWeapons(); i>0; i--)
    	{
    		lweapon w=Screen->LoadLWeapon(i);
    		if (w->ID==LW_ARROW){j++;}
    	}
    	if (UsingItem(14)==true)
    	{
    		if (Game->Counter[CR_SARROW] < 1)
    		{
    			Link->ItemJinx = -1;
    		}
    		if (j > 0)
    		{
    			Link->ItemJinx = -1;
    		}
    	}
    	else
    	{
    		Link->ItemJinx = 0;
    	}
    }
    
    void CounterUpdate()
    {
    	Game->Counter[CR_LIFEMIRRORMAX]=Link->MaxHP;
    	Game->Counter[CR_LIFECUR]=Link->HP;
    	Game->Counter[CR_MAGICMIRRORMAX]=Link->MaxMP;
    	Game->Counter[CR_MAGICCUR]=Link->MP;
    }
    
    item script SilverArrow
    {
    	void run()
    	{
    		Game->Counter[CR_SARROW]--;
    		Game->Counter[CR_ARROWS]++;
    	}
    }
    The only downside I see with this method is plays with item jinx times, but I don't ever use enemies that cause item Jinx in game as its too easy to render Link completely helpless if both types of jinxers are in the same room, so in my case not much of a downside.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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