Code:
mob
proc
Karma()
switch(input("Karma: ???","Character Creation",text) in list ("Good","Evil",))
if("Good")
src.karma = "Good"
src.karma_rating = 0
if(src.race == "Majin")
src.race = "AquaJin"
src.icon = 'Auqajin - Form 1.dmi'
alert("You have become an Aquajin")
if("Evil")
src.karma = "Evil"
src.karma_rating = 0
if(src.race == "Changling")
src.race = "Dark Changling"
src.icon = 'Dark Changling.dmi'
alert("You have become a Dark Changling")
if (src.race == "Saiyan")
src.race = "Evil Saiyan"
src.icon = 'Evil Saiyan.dmi'
alert("You have become a Demonic Saiyan")
Problem description:
Im not sure if this is the problem...but for some reason on the Vitals Tab of my game..I get two Karma's and im thinking the extra , after the "Evil" choice causes it but im not sure but when i delete the , it give's me errors..from what i know the , isnt supposed to be there though.
I have gone over the Vitals Tab code like 1 million times... I see no possible way for it to cause 2 Karma's.
ID:263820
Dec 7 2007, 7:24 pm (Edited on Dec 7 2007, 7:35 pm)
|
|
Dec 7 2007, 8:55 pm
|
|
show me the stat panel.
|
In response to Scarymonkeys623
|
|
Scarymonkeys623 wrote:
show me the stat panel. //-------VITALS------------------------------ if(src.tab_vitals) statpanel("Vitals") stat("Karma:","[src.karma]: [src.karma_rating]%") if(src.race == "Saiyan") if(src.rage_chromosome) stat("Gene Type:","Honour") if(src.train_chromosome) stat("Gene Type:","Pride") if(src.race == "Evil Saiyan") if(src.rage_chromosome) stat("Gene Type:","Honour") if(src.train_chromosome) stat("Gene Type:","Pride") if(src.tab_vitals) statpanel("Vitals") stat("Karma:","[src.karma]: [src.karma_rating]%") stat("--------","") stat("Level:",level) stat("EXP:","[round(src.exp / src.tnl * 100)] %") if(src.tp > 0) stat("Training Points:",src.tp) stat("--------","") stat("Powerlevel:","[num2text(round(src.powerlevel),1000000)] / [num2text(round(src.powerlevel_max),1000000)]") stat("Ki:","[num2text(round(src.ki),1000000)] / [num2text(round(src.ki_max),1000000)]") stat("Strength:","[num2text(round(src.strength),1000000)]") stat("Defence:","[num2text(round(src.defence),1000000)]") stat("--------","") stat("Rage:","[src.rage] %") stat("Fatigue:","[round(src.fatigue / src.fatigue_max * 100)] %") stat("Energy Code:","[num2text(src.energy_code,100000)]") There is the Vitals part of it. |
In response to King killer 113711
|
|
if(src.tab_vitals) try this |
In response to Scarymonkeys623
|
|
ahh..i found it thanks for the help =]
|