Quote from: Launian on September 27, 2012, 06:24:17 pmQuote from: sirSLR on March 15, 2012, 03:34:58 pm
can i edit something so that 1 dp rises 10 hp or sp instead of 1=1 ?
Find this part:def apply_new_attributes
@actor.maxhp += @spent[0] / BlizzCFG::HP_DP_COST
@actor.maxsp += @spent[1] / BlizzCFG::SP_DP_COST
@actor.str += @spent[2] / BlizzCFG::STR_DP_COST
@actor.dex += @spent[3] / BlizzCFG::DEX_DP_COST
@actor.agi += @spent[4] / BlizzCFG::AGI_DP_COST
@actor.int += @spent[5] / BlizzCFG::INT_DP_COST
@actor.dp -= @spent.sum
self.actor = @actor
end
and then change it for this:def apply_new_attributes
@actor.maxhp += (@spent[0] * 10) / BlizzCFG::HP_DP_COST
@actor.maxsp += (@spent[1] * 10) / BlizzCFG::SP_DP_COST
@actor.str += @spent[2] / BlizzCFG::STR_DP_COST
@actor.dex += @spent[3] / BlizzCFG::DEX_DP_COST
@actor.agi += @spent[4] / BlizzCFG::AGI_DP_COST
@actor.int += @spent[5] / BlizzCFG::INT_DP_COST
@actor.dp -= @spent.sum
self.actor = @actor
end
Sadly, this doesn't change the behaivor of the stat distribution window, wich means that, if you allocate 1 DP to your HP, it'll show 501 instead of 510 until you click on Accept Changes. I can't find out how to make it so the window reflects the fact that it adds 10 HP instead of 1, but leaving alone the Stats (STR, DEX, etc.).
oh well funny thing i did what u said than it didnt work i was stuck with hp i haid before so i tried this
def apply_new_attributes
@actor.maxhp += (BlizzCFG::HP_DP_COST > 0 ?
@spent[0] / BlizzCFG::HP_DP_COST : @spent[0] * 10 )
worked like a charm tough in windiow mode it still shows as if i add 100 hp
EDIT :
after few min of playing i did this
from:
HP_DP_COST = -100
to:
HP_DP_COST = -10
all is well that ends well