In response to Pirion
Pirion wrote:
Did you define it in your vars.dm?

mob/var Level=1 Exp=0 Nexp=100 //New code below HP=100 MaxHP=100 Str=10 Def=5



Yes i followed this tutorial from the start, from tut#1
Can you show that part?

Thanks!
In response to Pirion
Pirion wrote:
Can you show that part?

Thanks!

mob
var
Level=1
Exp=50
TotalExp=0
Nexp=100
HP=30
MaxHP=30
Str=5
Def=2
Question: What are the big disadvantages of just saving the whole mob? Provided you don't have any references to other atoms saved and are using tmp vars correctly, there shouldn't really be any need to save every variable seperatedly - right?
In response to Emasym
Emasym wrote:
Question: What are the big disadvantages of just saving the whole mob? Provided you don't have any references to other atoms saved and are using tmp vars correctly, there shouldn't really be any need to save every variable seperatedly - right?

The file will be huge. For one the icons are stored in a compressed (base 64) format. I once ended up with files that were 4MB in size. This adds up quickly with more players joining your game.
That's why you override Write() to stop the icon from saving. Overall, it's a much better method.
I keep getting th error:

save.dm:4:error: proc definition not allowed inside another proc

Its about this line:
var/savefile/F=new(FileName)

No idea where to look for whats wrong tho..hope someone can help out :)
Page: 1 2