ID:178450
 
I'm not really having a stat problem just a way of assigning initial stats to a certain character race. I want it so each race starts with different default stats. Consider the following code(sorry if it's long):

mob
var/set player_name = null
var/set hp = null
var/set ki = null
var/set enrgy = null
var/set str = null
var/set money = null
var/set ctarg = null
var/set ctech = null
var/set tnl = null
proc/StatCheck()
if(usr == /mob/saiyan)
var/set player_name = null
var/set hp = 100
var/set ki = 20
var/set enrgy = 30
var/set str = 5
var/set money = 0
var/set ctarg = null
var/set ctech = null
var/set tnl = 100
Stat()
stat("null:", usr.icon)
stat("Name:", player_name)
stat("Health:", hp)
stat("Ki:", ki)
stat("Energy:", enrgy)
stat("Strength:", str)
stat("Speed:", spd)
stat("Zenni:", money)
stat("Current Target:", ctarg)
stat("Current Technique:", ctech)
stat("To next level:", tnl)
Test World.dm:35:error:player_name:undefined type: player_name
Test World.dm:36:error:hp:undefined type: hp
Test World.dm:37:error:ki:undefined type: ki
Test World.dm:38:error:enrgy:undefined type: enrgy
Test World.dm:39:error:str:undefined type: str
Test World.dm:40:error:spd:undefined var
Test World.dm:41:error:money:undefined type: money
Test World.dm:42:error:ctarg:undefined type: ctarg
Test World.dm:43:error:ctech:undefined type: ctech
Test World.dm:44:error:tnl:undefined type: tnl

don't bash me just because I wanna start another dbz rpg please. Anyway i'm not sure what the deal is so if someone could help that would be good thx
Take the "set" out of your vars.

--Lee
In response to Mellifluous
alright, it worked thanks a lot.
In response to Jinks
Jinks wrote:
alright, it worked thanks a lot.

No worries ^_^

--Lee
In response to Mellifluous
FOOL! HE WAS MAKING A DBZ GAME!!!!!!! YOU HAVE DOOMED US ALL!
In response to Garthor
Garthor wrote:
FOOL! HE WAS MAKING A DBZ GAME!!!!!!! YOU HAVE DOOMED US ALL!

I am not a fool.

I know what he is making, but at least this one is actually creating it himself unlike the others.

I know I don't want another DBZ game but I am here to help where I can. Some people I will help, others I will refuse.

So please refrain from screaming at me as I don't want to have a flame war nor do I want any more bad mishaps happening again on the BYOND forum.

--Lee
In response to Mellifluous
it's called a joke.
In response to Garthor
Garthor wrote:
it's called a joke.

Well I am sorry for not getting your joke seing as I am tired right now and I have had alot on recently.

Plus the time is 23:37 :D

So, I'll say sorry again...

--Lee