User Tag List

Results 1 to 10 of 10

Thread: Level up data

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Floormaster Imzogelmo's Avatar
    Join Date
    Sep 2005
    Location
    Earth, currently
    Age
    45
    Posts
    387
    Mentioned
    7 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    1,464
    Level
    12
    vBActivity - Bars
    Lv. Percent
    95.59%
    Yep. I can do that.

    EDIT: This is what I came up with for the Fighter class:

    Code:
    void LevelUp()
    	{
    		if( lv >= 99 )
    			return;
    		
    		bool Strong = false;
    		bool Str_bonus = false;
    		bool Agi_bonus = false;
    		bool Vit_bonus = false;
    		bool Luc_bonus = false;
    		bool Int_bonus = false;
    
    		if (lv < 12) Strong = true;
    		else if ((lv < 24) && (lv % 3 != 0)) Strong = true;
    		else if ((lv >= 24) && (lv % 3 == 2)) Strong = true;
    		//--------------------------------
    		Str_bonus = true;
    		//--------------------------------
    		if (lv < 21) Agi_bonus = true;
    		else if ((lv < 30) && (lv % 3 != 0)) Agi_bonus = true;
    		else if ((lv >= 30) && (lv % 2 == 1)) Agi_bonus = true;
    		//--------------------------------
    		if ((lv < 31) && (lv % 3 != 1)) Vit_bonus = true;
    		else if ((lv >= 31) && (lv < 41) && (lv % 2 == 0)) Vit_bonus = true;
    		//--------------------------------
    		if ((lv < 31) && (lv % 3 != 2)) Luc_bonus = true;
    		else if ((lv >= 31) && (lv < 41) && (lv % 2 == 1)) Luc_bonus = true;
    		//--------------------------------
    		if ((lv < 44) && (lv % 3 == 1)) Int_bonus = true;
    
    		int hpIncrease = (vitality / 4) + 1;
    		if(Strong)
    			hpIncrease = 20 + (vitality / 4) + rand(1, 6);
    
    		max_hp += hpIncrease;
    		//mp
    		strength += 1;
    		Agi_bonus ? agility += 1      : if(probability(50) ) agility += 1;
    		Vit_bonus ? vitality += 1     : if(probability(50) ) vitality += 1;
    		Luc_bonus ? luck += 1         : if(probability(50) ) luck += 1;
    		Agi_bonus ? intelligence += 1 : if(probability(50) ) intelligence += 1;
    		mag_def += 2;
    	}
    Last edited by Imzogelmo; 01-16-2013 at 11:43 PM.

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