The following code is linked, the usr.DragonCheck() line in the verb is errored. The proc is included to ensure that the error isn't from the proc.
mob
GoodDragon
HP = 1000
Armor = 20
Strength = 100
icon = 'GoodDragon.dmi'
wander = 1
density = 1
verb
Boost(mob/M as mob in oview(12))
set src in oview(12)
set category = "Boost!"
if(usr.Alignment == "Good"
usr.DragonCheck()
usr << "You are boosted!"
usr.Strength += 1000
usr.Armor += 1000
usr.HP += 1000
usr.DragonBoost = 1
else
usr << "You're evil!"
usr.HP -= 100
usr.PCDeath()
mob
proc
DragonCheck()
if(usr.DragonBoost == 1)
usr << "You have been boosted already, you noob!"
usr.HP -= 100
PCDeath()
return 1
ID:149092
Jul 7 2002, 1:30 pm
|
|
In response to Super16
|
|
Just a friendly hint... if you get similar errors in future, check that you've closed off all your parentheses, brackets, and quotes properly. Trust me, it happens a LOT (to me anyway).
|
In response to Super16
|
|
Super16 wrote:
Drafonis wrote: Thanks. I did that, and it compiled correctly. Also, I have a question. In the proc, would return 1 cause the rest to stop if the "if" statement is true? |
In response to Drafonis
|
|
Drafonis wrote:
I have a question. In the proc, would return 1 cause the rest to stop if the "if" statement is true? When a return is hit, everything after it in the proc is ignored. |
That line I showed is missing a parentheses. May wanna add the right parentheses