ID:266226
 
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks
Robo Cop wrote:
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks

Nadrew's Leveling System or just use this
mob/verb/slay(mob/M in oview(1))
M.health-=damgage//make a damage var
if(M.health>=0)
//the death proc
usr.stat1+=blah
usr.stat2+=blah//ect...
This is assuming you know hot to make a statpanel

In response to Air _King
Air _King wrote:
Robo Cop wrote:
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks

Nadrew's Leveling System or just use this
mob/verb/slay(mob/M in oview(1))
M.health-=damgage//make a damage var
if(M.health>=0)
//the death proc
usr.stat1+=blah
usr.stat2+=blah//ect...
This is assuming you know hot to make a statpanel


Its better to create the damage var within the attack for different level attacks for differnt verbs.
In response to Nadrew
Nadrew wrote:
Air _King wrote:
Robo Cop wrote:
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks

Nadrew's Leveling System or just use this
mob/verb/slay(mob/M in oview(1))
M.health-=damgage//make a damage var
if(M.health>=0)
//the death proc
usr.stat1+=blah
usr.stat2+=blah//ect...
This is assuming you know hot to make a statpanel


Its better to create the damage var within the attack for different level attacks for differnt verbs.

So whats my progress report Nadrew????
In response to Air _King
Air _King wrote:
Nadrew wrote:
Air _King wrote:
Robo Cop wrote:
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks

Nadrew's Leveling System or just use this
mob/verb/slay(mob/M in oview(1))
M.health-=damgage//make a damage var
if(M.health>=0)
//the death proc
usr.stat1+=blah
usr.stat2+=blah//ect...
This is assuming you know hot to make a statpanel


Its better to create the damage var within the attack for different level attacks for differnt verbs.

So whats my progress report Nadrew????

70%
In response to Nadrew
Nadrew wrote:
Air _King wrote:
Nadrew wrote:
Air _King wrote:
Robo Cop wrote:
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks

Nadrew's Leveling System or just use this
mob/verb/slay(mob/M in oview(1))
M.health-=damgage//make a damage var
if(M.health>=0)
//the death proc
usr.stat1+=blah
usr.stat2+=blah//ect...
This is assuming you know hot to make a statpanel


Its better to create the damage var within the attack for different level attacks for differnt verbs.

So whats my progress report Nadrew????

70%

Ok is that my grade or is that how much i have progressed from 0?
In response to Air _King
Air _King wrote:
Nadrew wrote:
Air _King wrote:
Nadrew wrote:
Air _King wrote:
Robo Cop wrote:
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks

Nadrew's Leveling System or just use this
mob/verb/slay(mob/M in oview(1))
M.health-=damgage//make a damage var
if(M.health>=0)
//the death proc
usr.stat1+=blah
usr.stat2+=blah//ect...
This is assuming you know hot to make a statpanel


Its better to create the damage var within the attack for different level attacks for differnt verbs.

So whats my progress report Nadrew????

70%

Ok is that my grade or is that how much i have progressed from 0?

6
In response to Nadrew
Nadrew wrote:
Air _King wrote:
Nadrew wrote:
Air _King wrote:
Nadrew wrote:
Air _King wrote:
Robo Cop wrote:
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks

Nadrew's Leveling System or just use this
mob/verb/slay(mob/M in oview(1))
M.health-=damgage//make a damage var
if(M.health>=0)
//the death proc
usr.stat1+=blah
usr.stat2+=blah//ect...
This is assuming you know hot to make a statpanel


Its better to create the damage var within the attack for different level attacks for differnt verbs.

So whats my progress report Nadrew????

70%

Ok is that my grade or is that how much i have progressed from 0?

6 << Is that how much i have progressed from zero???COME ON!!!!!!!!!!! Give me a QUIZ!!!!!!!!!!
In response to Air _King
make coding that gives you stast after you kill them. like experience and gold, and when your exp. gets to a certain point, you gain a level and your strenght and other stuff go up. and as ur strength goes up, u hit harder, or as your defense goes up, you get hit less......
p.s this is not for me :-\
In response to Robo Cop
Robo Cop wrote:
make coding that gives you stast after you kill them. like experience and gold, and when your exp. gets to a certain point, you gain a level and your strenght and other stuff go up. and as ur strength goes up, u hit harder, or as your defense goes up, you get hit less......
p.s this is not for me :-\


You know if you look at my leveling system you can read over it and write your own code that does all that up there.
In response to Robo Cop
Robo Cop wrote:
make coding that gives you stast after you kill them. like experience and gold, and when your exp. gets to a certain point, you gain a level and your strenght and other stuff go up. and as ur strength goes up, u hit harder, or as your defense goes up, you get hit less......
p.s this is not for me :-\

Ok.......EASY!!!!!!!!!!!!!!
mob/verb/attack(mob/M in oview(1))
var/damage=usr.strength-M.defence
if(M.HP>=0)
usr.exp+=blah
usr.gold+=blah
if(usr.exp>=maxexp)
usr.Hp+=blah
//same for rest
mob
var
HP
gold
MaxHP
exp
maxexp
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest

so whats my score????????
In response to Nadrew
Nadrew wrote:
Robo Cop wrote:
make coding that gives you stast after you kill them. like experience and gold, and when your exp. gets to a certain point, you gain a level and your strenght and other stuff go up. and as ur strength goes up, u hit harder, or as your defense goes up, you get hit less......
p.s this is not for me :-\


You know if you look at my leveling system you can read over it and write your own code that does all that up there.

Now Naderew give me a test........
In response to Nadrew
i know, but i just wanted to see how he'd do it....
Robo Cop wrote:
Where should i look to explain how to make monsters give a person experience after they are slain by a mob, and have it affect that persons stats, i.e gaining levels and strength? thanks

You should look at the basics of the language. If you do manage to find a...death system which suits your needs in some snippet, you will be unable to understand how it works, and so if a bug arises, or you want to improve on it you wont know how. To increase a variable use the += operator, to delete a mob use del(mob_in_question). Try reading through ZBT, it has a lot of usefull information, then read the guide and FAQ, and your question should be answered. Once you have thoroughly read through the available sources of information, if you STILL cant figure out how to do something then you can post something on this board and we will try to help you.

Alathon
In response to Air _King
Air _King wrote:
Nadrew wrote:
Robo Cop wrote:
make coding that gives you stast after you kill them. like experience and gold, and when your exp. gets to a certain point, you gain a level and your strenght and other stuff go up. and as ur strength goes up, u hit harder, or as your defense goes up, you get hit less......
p.s this is not for me :-\


You know if you look at my leveling system you can read over it and write your own code that does all that up there.

Now Naderew give me a test........

I am quite ill right now so I am in no condition to give you a quiz,maybe some other time.
In response to Air _King
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest

so whats my score????????

0.
In response to Vortezz
Vortezz wrote:
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest

so whats my score????????

0.

Ok.....
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest
better?
In response to Air _King
Air _King wrote:
Vortezz wrote:
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest

so whats my score????????

0.

Ok.....
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest
better?


Still 0 you did the health thing wrong

stat("Health","[HP]/[MaxHP]")
In response to Nadrew
Nadrew wrote:
Air _King wrote:
Vortezz wrote:
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest

so whats my score????????

0.

Ok.....
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest
better?


Still 0 you did the health thing wrong

stat("Health","[HP]/[MaxHP]")

ok i was going to fast!!!!!!!!right idea just forgot [HP]
In response to Air _King
Air _King wrote:
Nadrew wrote:
Air _King wrote:
Vortezz wrote:
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest

so whats my score????????

0.

Ok.....
Stat()
statpanel("Stats")
stat("HP","/[MaxHP]"
stat........//do the same for the rest
better?


Still 0 you did the health thing wrong

stat("Health","[HP]/[MaxHP]")

ok i was going to fast!!!!!!!!right idea just forgot [HP]


The way you did it ( forgeting the ")") Would of caused errors on about 15 lines.
Page: 1 2