ID:144487
 
Code:


Problem description:
mob/proc/CurseSealLevel1()
if(src.bit)
src.health -= 10000
if(src.health <=0)
src.Death
src<<"You have lost your chance to gain a Curse Seal."
else
src.random=rand(1,60)
if(src.random=1)
icon = 'HeavenSeal.dmi'
src.HeavenSeal=1
src.CSLevel=1
src.CSControl=0
src.verbs += mob/verb/SealLvl1()
src<<"You have been given the Heaven Seal!"
world<<"[src] has gotten a Curse Seal!"
SaveK()
if(src.random=2)
icon = 'EarthSeal.dmi'
src.EarthSeal=1
src.CSLevel=1
src.CSControl=0
src.verbs += mob/verb/SealLvl1()
src<<"You have been given the Earth Seal!"
world<<"[src] has gotten a Curse Seal!"
SaveK()

and the error keeps saying = "line 18. error. proc definition not allowed in another proc."
DM tags, please. Put "<" then "dm" then ">" before your code, and "<" then "/dm" then ">" after. (I can't put the tags together or it will actually implement them)

It's awfully hard to read code that isn't tagged.


--Vito
In response to Vito Stolidus
If I had to assume by looking at that, it's talking about SaveK() thats being called.
In response to Pyro_dragons
No, I bet it's because of this line
if(src.random=2)
, note it's = not ==

BTW, don't learn from the BolTS/WOTS source code, it teaches you bad stuff... like... wth do you need a random variable set to mob? You can make a temp one or use switch() instead.

- GhostAnime
In response to GhostAnime
i think he missed something

he has
src.death


but he should have
src.death()


i believe that the death thing would be a proc since he would be calling it when the users health = 0, think it over.
In response to Vito Stolidus
Vito Stolidus wrote:
DM tags, please. Put "<" then "dm" then ">" before your code, and "<" then "/dm" then ">" after. (I can't put the tags together or it will actually implement them)

I assume you mean the <DM> tag? If so, type it properly.
In response to GhostAnime
Yeah, it is that line GhostAnime. Thanks, and i'll keep the idea about the WOTS and BOLTS codes in mind as well.
In response to Vito Stolidus
Vito Stolidus wrote:
DM tags, please. Put "<" then "dm" then ">" before your code, and "<" then "/dm" then ">" after. (I can't put the tags together or it will actually implement them)

FYI, you can use HTML entities &lt; for < and &gt; for > to show angle brackets without them being interpeted as tags.

Lummox JR