What I want to know is how to make stats do what they do.
Here are mine:
mob/Stat()
//
statpanel("Stats")
stat("Experience","[src.Exp]/[src.MaxExp]")
stat("Name",name)
stat("Health","[src.Health]/[src.MaxHealth]")
stat("Energy",Energy)
stat("Stanima",Stanima)
stat("Speed",Speed)
stat("Strength",Strength)
stat("Pokemoney",Pokemoney)
mob
var
Pokemoney = 5000
mob
var
Health = 2000
mob
var
Strength = 2000
mob
var
MaxHealth = 2000
mob
var
Energy = 1000
mob
var
Speed = 1000
mob
var
Stanima = 1000
mob
var
Exp = 1000
mob
var
MaxExp = 2000
ID:271305
Apr 19 2007, 11:21 pm
|
|
Apr 19 2007, 11:32 pm
|
|
We don't know what you want stats to do, but you might make a procedure that adjusts your Maximum HP according to your Health variable
|
Lanzo Kuryuu wrote:
What I want to know is how to make stats do what they do. Post the code in DM using the dm tag... Also you do not need to define mob/var everytime, instead do this: mob/Stat() And Im not sure exactly what you mean by make them 'do what they do' you need to code it in, most of those vars look like they need to be implemented into a battle system. |
In response to Derekjeterisgod
|
|
I 'think' he means do what they do.
Strength = Attacking Power etc so he wants to get an Attack verb using that variable. I am sure someone can code a simple Attack verb. By the way check out the Guides like http://developer.byond.com/hub/Dantom/YourFirstWorld Which is good for beginners. 5th Design 'Akiryo' |
Stat() is handled by a built-in feature that modifies the panels of the application.
There's no code to emulate it as far as I know. |