I'm fairly new in BYOND ( about 2/3's done with my first game ), and I'm wonder what is really more efficient. When I talk efficient I mean like the best speed:size ratio possible.
I have a few cases I was wondering about:
Is it more efficient to have lesser variables in /mob and more inside of like /mob/pc and /mob/monster even if they would be duplicate? I use a lot of variables such as ExpHitWorth and HitPoints inside of /mob/var instead of inside of /mob/monster. Would having things like shopkeepers and other NPC's who never engage in combat with these variables really be that much of an extra tax?
Is it better to reference procs within verbs to carry out actions? I don't know about this, but which do you think would work better?
Some ending action based on return
Meat of the verb's action
Are lists more efficient than regular variables? Like, would it be more efficient for me to use a var for each stat, or a list holding all of them?
Does anyone know how difficult it is to execute if() statements? I use a TON of them in some of my procs & verbs, and I'm wondering how much damage they do ( I might be able to get rid of them if I were to use lists ), so I guess the question is: if() statements or lists?
Thanks in advance, and you can reply here with questions/comments or e-mail me @ firstname.lastname@example.org and replace nospam with shadowwolf :)
May 9 2002, 7:15 am