ID:168471
 
1. Make different chars (Temprion, Finity, Krasj and Morkron) get different stats each level up

2. Make a loop that mobs would run (groups of different mobs running i.e. around the whole map, one staying within 4 tiles)
and to make them attack whenever a person is in 3 tiles away from them.

3. Give the user black screen for a specified amount of time

4. Round damage numbers down. (i.e. 6.5 damage becomes 6)

I've check the library's, and some of them answered my question. But most of them were faulthy and messed with my code, or didnt give an explenation why they where doing something. (Writing this would be appreciated!)

Ty
mob
var/list/Classes = list("Temprion", "Finity", "Kralj", "Morkron")

That defines the list of classes, but not sure that's what you want
Damage = round(13 / 2)

13 divided by 2 is 6.5, but putting it inside round() rounds it to the nearest integer

Hehe, I didn't realize that I'm using the wrong key...
For number 4, you would probably want something similar to this..
var/damage=round(usr.strength-M.defense)
/*this would go inside your attack verb(or process),
after any checks you might have to stop the attack.
The way I wrote it assumes its a verb (hence the usr.strength)
and that you've pre-defined the mob that is being attacked as M.
I'm sure your formula for damage is different, but that's one way to round your numbers.
*/
In response to Detnom
Thanks Detnom, that did it! :)

Bump for the other ones
You can't just copy and paste code and make it work with YOUR code.
In response to Mecha Destroyer JD
I tryed the one that productions guy posted, but didnt work out in any way. And had no clue how to use it.
For #1, in your level up check, do an if() to see if src's race is each, and after each check give the specified amount of stats.
For #2, check out the step() and walk() procs, and their variants.
For #3, check out the sight var for client.
In response to Artemio
Artemio wrote:
For #1, in your level up check, do an if() to see if src's race is each, and after each check give the specified amount of stats.

-Gives empty else clauses last time I tryed that.. Might do again when I come back from school


For #2, check out the step() and walk() procs, and their variants.
For #3, check out the sight var for client.

-Will do