Re: Character Creation Guide
Posted: Thu Feb 13, 2014 8:16 pm
That was against enemies Elenore was strong against. I was sure and gave my frontline fights different weapons so my force would be good against any opponent.
Code: Select all
def derive(self):
#set HP based on Class & Level
if self.charClass==Warrior:
self.att["HP"] = 75+int(self.att["Strength"] * 5+self.level*5)
elif self.charClass==Thief:
self.att["HP"] = 75+int(self.att["Strength"] * 5+self.level*4)
else:
self.att["HP"] = 75+int(self.att["Strength"] * 5+self.level*3)
#set SP based on Class
if self.charClass==Warrior:
self.att["SP"] = 40+int(self.att["Will"] * 1.5 )+self.level*2
elif self.charClass==Thief:
self.att["SP"] = 20+int(self.att["Will"] * 2)+self.level*4
else:
self.att["SP"] = int(self.att["Will"] * 3)+self.level*6
if tactics==True:
self.att["SP"] =int (0.8*self.att["SP"])
self.hp = self.att["HP"]
self.sp = self.att["SP"]
#set Attack based on Class
if self.charClass==Warrior:
self.att["Attack"] = int(self.att["Strength"] + (self.att["Skill"]/2.0))
elif self.charClass==Thief:
self.att["Attack"] = int(self.att["Skill"] + (self.att["Strength"]/2.0))
else:
self.att["Attack"] = int(self.att["Will"] + (self.att["Skill"]/2.0))
#set Defense based on Skill+Will
self.att["Defense"] = int(self.att["Skill"]/2.5 + self.att["Will"]/3.0+self.level*1.5)
#set Magic based on Will+Skill
self.att["Magic"] = int(((self.att["Will"] + (self.att["Skill"]/2.0))*0.75)*2) + 15
self.att["Speed"] = int(self.att["Skill"] * self.charClass.cSpeed) + 100
self.att["Threshold"] = int(self.att["Strength"] * self.charClass.cThreshold)
self.att["SPRegen"] = 1+int(self.getValue("Will")/25.0)
#self.att["Attack"] = int(self.att["Strength"] + (self.att["Skill"]/2.0))
#self.att["Resistance"] = self.charClass.cResistance
Thanks a million!Anima_ wrote:Delay is reduced/increased for every 15 points of speed above/below 100. -snip-
Code: Select all
def getWait(self, pSkill):
wait = pSkill.cWait - round((self.getValue("Speed")-100)/pSkill.cThreshold)
if wait > pSkill.cMinWait:
return wait
return pSkill.cMinWait
Thanks again! I feel bad to bother you devs with this, but it really helpsjack1974 wrote:Well, I dug the code for the wait function:The default values are:Code: Select all
def getWait(self, pSkill): wait = pSkill.cWait - round((self.getValue("Speed")-100)/pSkill.cThreshold) if wait > pSkill.cMinWait: return wait return pSkill.cMinWait
cMinWait = 1
cThreshold = 15