I'm trying to make a system where you have to click the stat to raise it, but you I can't get it so you can click the stat... because a process can't be inside of a process. x_X
Well, here's what I have so far...
mob
var
BP == 4
exp == 0
MEXP == 100
HP == MHP
MHP == Vit*4
MP == MMP
MMP == Int*3
Str = Pwr*3
Spd == Agi*2
Pwr == 8
Agi == 5
Vit == 3
Int == 6
Stat()
statpanel("[usr]")
stat("Name","[src]")
stat("Experience Points","[exp]/[MEXP]")
stat("Health:","[HP]/[MHP]")
stat("MP:","[MP]/[MMP]")
stat("Agility:","[Speed]")
stat("Strength:","Strength")
statpanel("Battle Stats")
stat("Dexterity:","[Agi]")
Click()
if(src.BP <= 0)
src << "You don't have enough Battle Points!"
else
src.Agi += 1
src.Spd += Agi*1.3(round,1)
src.BP -= 1
stat("Vitality:","[Vit]")
Click()
if(src.BP <= 0)
src << "You don't have enough Battle Points!"
else
src.BP -= 1
src.Vit += 1
src.MHP += Vit*1.2(round,1)
stat("Intelligence:","[Int]")
Click()
if(src.BP <= 0)
src << "You don't have enough Battle Points!"
else
src.BP -= 1
src.Int += 1
src.MMP += Int*1.3(round,1)
stat("Power:","[Pwr]")
Click()
if(src.BP <= 0)
src << "You don't have enough Battle Points!"
else
src.BP -= 1
src.Pwr += 1
src.Str += Pwr*1.4(round,1)
stat("Battle Points:","[BP]")
And, one MEASLY error, and here it is...
loading Level-Up Test.dme
Level-Up Test.dm:29:error: proc definition not allowed inside another proc
Level-Up Test.dmb - 1 error, 0 warnings (double-click on an error to jump to it)
Thanks for your help...