1. How do I make it to where if the certain level experience is above a certain number it makes the level go up?
EX: If mob/var/attackexp is > than 100 mob/var/attacklvl = 1
2. How would I make a variable or somthing to add on to a certain verb that adds a certain amount of experience?
EX: when mob/monster/rat/verb/attack is called add 10 to attackexp but if they die do not add anything.
3. How would I do ,"if mob/var/healthlvl = 1 mob/var/health = 10",?
Please express the answers to these questions in code because I am very stupid. Sorry if these questions don't make sense to you, I am trying.
ID:158133
Oct 23 2009, 2:29 pm
|
|
#2 Oct 23 2009, 2:38 pm
|
|||
1.)
2.)
And I'm not quite sure what you mean by the last one. | |||
#3 Oct 23 2009, 2:42 pm
|
|||||
1.
2.
3.
OR
DM Guide | |||||

Whenever you modify variable X, check the conditions and - if applicable - change variable Y. This would be something you'd put in a proc, IE: mob/proc/addAttackExp(var/N)
By adding to the variable in the verb.
See 1.