[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Increasing EXP given to Medics for healing  XML
Forum Index -> Druids RPG
Author Message
OldGrandad



Joined: 08/06/2006 07:00:30
Messages: 16
Offline

I have tried but dismally failed in trying to raise the XP given to medics for healing. I have followed Druids tutorial but somewhere I have lost my way. I have created my RPG and classes folders and I am assuming I was right in selecting AbilityExpHealing.uc as my base for changing values? I created my blank file and in the header typed;
Code:
class myAbilityExpHealing extends AbilityExpHealing
 	config(UT2004RPG)
 	abstract;


And I added at the bottom;
Code:
defaultproperties
 {
      EXPBonusPerLevel=0.030000
      AbilityName="Experienced Healing"
      Description="Allows you to gain additional experience for healing others with the Medic Gun.|Each level allows you to gain an additional 3% experience from healing. (Max Level: 9)|You must be a Monster Master and have Loaded Medic to purchase this skill.|Cost (per level): 5,8,11,14,17,20,23,26,29"
      StartingCost=5
      CostAddPerLevel=3
      MaxLevel=9
 }


As you see I wanted to increase the percentage but as I am no coder (obvious eh!) I could find no other place to alter this information. Well the ucc make did not like it and I was obviously way off base with this one. If someone feeling sorry for me can point me in the right direction I would be most grateful (again!).

OG
Szlat

Wicked Sick!

Joined: 05/18/2005 18:32:41
Messages: 2124
Location: UK
Offline

At the top of the AbilityExpHealing class there is a line that says
Code:
var config float EXPBonusPerLevel;
 

The config means that it is configurable in the UT2004RPG.ini file.

So, you don't need to do any coding. Just look for a section in the UT2004RPG.ini file that says
Code:
[DruidsRPG200.AbilityExpHealing]
 EXPBonusPerLevel=0.01
 

If it is not there, then add it.
Then change the 0.01 to whatever you want, 0.03 in your example.
Code:
[DruidsRPG200.AbilityExpHealing]
 EXPBonusPerLevel=0.03
 

OldGrandad



Joined: 08/06/2006 07:00:30
Messages: 16
Offline

Szlat wrote:
At the top of the AbilityExpHealing class there is a line that says
Code:
var config float EXPBonusPerLevel;
 

The config means that it is configurable in the UT2004RPG.ini file.

So, you don't need to do any coding. Just look for a section in the UT2004RPG.ini file that says
Code:
[DruidsRPG200.AbilityExpHealing]
 EXPBonusPerLevel=0.01
 

If it is not there, then add it.
Then change the 0.01 to whatever you want, 0.03 in your example.
Code:
[DruidsRPG200.AbilityExpHealing]
 EXPBonusPerLevel=0.03
 

 


Thank you indeed, I must get into coding as it seems answers are staring me in the face but unless you recognise what you are looking for you don't see it

Thank you again.

OG
 
Forum Index -> Druids RPG
Go to: