mob/create_character
var/mob/character
Login()
usr<<sound('opening.mid',1)
usr.loc=locate(8,7,2)
var/charactername = input("Hello, Pick a name for your character, something you wish for people to call you in the game.","Character Name?")
switch(input("Below pick one of the following backgrounds you wish for your character to be. It determines what skills you get in the game.","Character Background?") in list("Frog-Woman","Frog-Man","Human(Male)","Human(Female)"))
if ("Frog-Man")
character = new /mob/You/Warrior()
if ("Frog-Woman")
character = new /mob/You/Warrior2()
if ("Human(Male)")
character = new /mob/You/Cleric()
if ("Human(Female)")
character = new /mob/You/Magician()
character.name = charactername
src.client.mob = character
if(character.gender=="female")
character.icon_state="2"
character.loc=locate (2,2,1)
world<<"<B>[character] has logged in!"
del(src)
..()
mob
proc
LvlCheck()
if(usr.Exp>=usr.Mexp)
usr<<"<I><B><small>You gained a level!"
usr.level+=1
usr.MHP+=rand(1,5)
usr.HP=usr.MHP
usr.MMP+=rand(1,5)
usr.MP=usr.MMP
usr.Str+=rand(1,5)
usr.Def+=rand(1,7)
usr.Expg*=2
usr.Exp=0
usr.Mexp*=1.15
mob/You/Warrior
icon='Player1.dmi'
mob/You/Warrior2
icon='Player1-1.dmi'
mob/You/Cleric
icon='Player2.dmi'
mob/You/Magician
icon='Player3.dmi'
ID:270586
![]() Jun 30 2006, 9:13 am
|
|
How do i make it so that "Frog man" gets more strength and less defense then "Human male"?
|
That should work, however I didn't test. I am pretty sure it will though. The for loop runs through each stat add in the Adds list and finds it in src.Stats and then adds the... add. O_o
Hopefully you understand.
-Exophus