User Tag List

Results 1 to 3 of 3

Thread: Simple idea, perfered help.

  1. #1
    Octorok Sir_Johnamus's Avatar
    Join Date
    Jul 2005
    Age
    31
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,938
    Level
    14
    vBActivity - Bars
    Lv. Percent
    64.61%

    Simple idea, perfered help.

    I would like to have an item script to attach to an item. The idea is for a weapon that increases in power when you lose hearts. If you have at most 1 heart left, the item's power tripples. And help would be nice, and if you don't want to, that's fine too.

  2. #2
    Octorok Dan Furst's Avatar
    Join Date
    Oct 2005
    Age
    39
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,501
    Level
    13
    vBActivity - Bars
    Lv. Percent
    9.7%

    Re: Simple idea, perfered help.

    I'm just guessing here, but you might be able to use Item->Class->Level to change the level of a sword if your HP is below a threshold. Something like:
    Code:
    item script PerilSword{
    void run()
    {
    	itemclass ic = this->Class;
    	if(Link->HP < (2*16)+1) // Link has 2 hearts or less
    	{
    		ic->Level = 4; // master sword
    	}
    	else
    	{
    		ic->Level = 1; // wooden sword
    	}
    }
    }
    ...but that probably won't actually change the power. I think you would need direct access to something like Item->Power, which isn't available yet.

    Go ahead and play with it, though.

  3. #3
    Octorok Sir_Johnamus's Avatar
    Join Date
    Jul 2005
    Age
    31
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,938
    Level
    14
    vBActivity - Bars
    Lv. Percent
    64.61%

    Re: Simple idea, perfered help.

    Thanks. That works pretty well. Here's to waiting for direct access. I will use the script until then.

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