Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:19:18 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Shop Arcade chat Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • Ertzel: So... Anyone with basic/none/limited photoshop or even paint skills want to make some money converting sprites for me?
    Today at 10:07:35 PM
  • Gamma™: weaver why are you oflfine on H&H? :S
    Today at 10:04:26 PM
  • Ertzel: Ya, only one try per knife, my one try failed :(
    Today at 10:00:17 PM
  • LegendWeaver: is it one use?
    Today at 09:43:15 PM
  • Ertzel: Wish I didnt spend my 1k+ credits to buy the stupid knife that failed at stealing Robins credits >.<
    Today at 09:42:42 PM
  • Wraith: ) Kreator!
    Today at 09:06:52 PM
  • Wraith: yes! you were! (in red text
    Today at 09:06:46 PM
  • ToshiroHayate: Kreator!
    Today at 08:25:02 PM
  • Kreator: o_0 Was I supposed to Wraith?
    Today at 08:16:02 PM
  • [Pie] ICT: Don't worry.. I commented.
    Today at 07:55:08 PM
  • Wraith: Ay, kreator, wtf is up with you not posting anything about my new cliffs??
    Today at 07:50:36 PM

* Recent Topics

[EO] Attaching Problem. by Ertzel
[Today at 10:11:57 PM]


Project Vertigo [2d Tile-based Side-Scrolling Engine] by Miguu
[Today at 10:03:22 PM]


Zacaras Empire (Hiring) by Ertzel
[Today at 08:43:54 PM]


custom cliff tiles by ToshiroHayate
[Today at 08:29:15 PM]


.: RPG Kingdom :. by LegendWeaver
[Today at 08:25:20 PM]


What do you think? by [Pie] ICT
[Today at 07:54:54 PM]


[Show Off] Aztec Stuff by [Pie] ICT
[Today at 07:50:07 PM]


So I herd you liek mudkipz by Kreator
[Today at 07:36:52 PM]


Haven and Hearth: Epic Screenshot Thread by Tompwnage™
[Today at 07:14:21 PM]


The Lonliest Star [RP] by DDunit
[Today at 07:09:46 PM]


* Who's Online


Site Author : Topic: Stat max for each class Difficulty (1/5)  (Read 2498 times)
0 Members and 1 Guest are viewing this topic.
March 19, 2007, 01:49:15 AM
Mæster Programmer
Active Member
***
User No : 1269
Posts: 139
  • 0 credits
  • View Inventory
  • Send Money To Azalgath
  • Location : New Zealand
    I am serious warrior This is serious thread
    • View Profile
    :te:
    This lets each of your class have different maximum to each of their stats.

    Eg:
    Warrior can have 200str
    while Mage can only have 100str.

    ===========================
    Replace your Sub UsingStatPoints() with this code:
    Code: [Select]
    Sub UsingStatPoints(index, PointType) '<Increasing your stats>
      Dim Max

      Select Case PointType
       Case 0 '<Strength>
        Max=int(getvar("Classes\Class" & GetPlayerClass(index) & ".ini", "MAX", "Str"))
         'Ensures you don't go over your max points
         If GetPlayerSTR(index) + 1 > Max Then
          Call PlayerMsg(index, "Your strength is at it's maximum!", 14)
          Exit Sub
         End If
        'Increases the stat
        Call SetPlayerSTR(index, GetPlayerSTR(index) +1)
        Call PlayerMsg(index, "You increase your strength!", 14)


       Case 1 '<Defence>
        Max=int(getvar("Classes\Class" & GetPlayerClass(index) & ".ini", "MAX", "Def"))
         If GetPlayerDEF(index) + 1 > Max Then
          Call PlayerMsg(index, "Your defence is at it's maximum!", 14)
          Exit Sub
         End If
        Call SetPlayerDEF(index, GetPlayerDEF(index) + 1)
        Call PlayerMsg(index, "You have gained more defence!", 14)

       Case 2 '<Magic>
        Max=int(getvar("Classes\Class" & GetPlayerClass(index) & ".ini", "MAX", "Mag"))
         If GetPlayerMAGI(index) + 1 > Max Then
          Call PlayerMsg(index, "Your magic is at it's maximum!", 14)
          Exit Sub
         End If
        Call SetPlayerMAGI(index, GetPlayerMAGI(index) + 1)
        Call PlayerMsg(index, "You grow in magical power!", 14)


       Case 3 '<Speed>
        Max=int(getvar("Classes\Class" & GetPlayerClass(index) & ".ini", "MAX", "Spd"))
         If GetPlayerSPEED(index) + 1 > Max Then
          Call PlayerMsg(index, "Your speed is at it's maximum!", 14)
          Exit Sub
         End If
        Call SetPlayerSPEED(index, GetPlayerSPEED(index) + 1)
        Call PlayerMsg(index, "Your speed has increased!", 14)

      End Select

      'Decrease points left
      Call SetPlayerPoints(index, GetPlayerPoints(index) - 1)
    End Sub
    =============================
    Now add to your ClassX.ini this:
    Code: [Select]
    [MAX]
    Str=250
    Def=200
    Spd=200
    Mag=200
    Note: Change the numbers to what you would like the stat max to be with each class.

    So your ClassX.ini should look something like this: (Of course your will be different because you will have different classes)
    Code: [Select]
    [CLASS]
    Name=Fighter
    MaleSprite=1
    FemaleSprite=2
    STR=10
    DEF=8
    SPEED=6
    MAGI=4
    MAP=1
    X=15
    Y=11
    Locked=0
    [MAX]
    Str=250
    Def=200
    Spd=200
    Mag=200
    [CLASSCHANGE]
    AddStr=0
    AddDef=0
    AddSpeed=0
    AddMagic=0
    [STARTUP]
    Weapon=0
    Shield=0
    Armor=0
    Helmet=0
    [SKILLS]
    Skill1=0
    Skill2=0
    Skill3=0
    Skill4=0
    Skill5=0
    Skill6=0
    Skill7=0
    Skill8=0
    Skill9=0
    Skill10=0
    Skill11=0
    Skill12=0
    Skill13=0
    Skill14=0
    Skill15=0
    Skill16=0
    Skill17=0
    Skill18=0
    Skill19=0
    Skill20=0
    Skill21=0
    Skill22=0
    Skill23=0
    Skill24=0
    Skill25=0
    Skill26=0
    Skill27=0
    Skill28=0
    Skill29=0
    Skill30=0
    « Last Edit: March 19, 2007, 01:50:48 AM by Azalgath » Logged


    I am nerdier than 98% of all people. Are you a nerd? Click here to find out!
    March 31, 2007, 10:30:46 AM
    MIDI Man
    Member
    **
    User No : 2408
    Posts: 49
  • 0 credits
  • View Inventory
  • Send Money To hippieshopper
  • Location : Here
    • View Profile
    what is Locked=0 for?
    Logged



    Wannabe Successor of Mr. Uematsu. That means I make MUSIC! If you need MIDI's PM me or else...I'll do something bad to your goat.
    March 31, 2007, 10:34:24 AM
    Demi God
    User No : 1436
    Posts: 5573
  • 1104 credits
  • View Inventory
  • Send Money To Anna Comnena
  • Location : Colorado
    • View Profile
    You set a class to Locked=1 and it does not appear in the starting list. Good for advanced classes. Locked=0 means it will be selectable when you create a character.
    Logged

    Please don't PM me for H&H hearth secrets!
    Everyone's a newbie at some point!
    You want to keep something a secret? Put it in big red letters in a Sticky post on an Internet forum, nobody will ever see it.
    March 31, 2007, 10:37:53 AM
    MIDI Man
    Member
    **
    User No : 2408
    Posts: 49
  • 0 credits
  • View Inventory
  • Send Money To hippieshopper
  • Location : Here
    • View Profile
    Yeah! I was hoping that's what it did.
    My game is going to have 'evolution', you have like 4 or 5 basic classes and each of them have evolutionary classes, like

    (Mage) Acolyte -> Magician -> Sorcerer -> Archmage

    I think you all get the idea....
    Logged



    Wannabe Successor of Mr. Uematsu. That means I make MUSIC! If you need MIDI's PM me or else...I'll do something bad to your goat.
     


    Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
    SimplePortal 2.3.1 © 2008-2009, SimplePortal
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.212 seconds with 29 queries.