In response to Gogeta126
No, you don't even know the basic, basic, basics apparently. Don't even bother trying to make a game until you do.

mob/Login()
src.icon = 'icon.dmi'
src.loc = locate(1,1,1)


Always use src if you can. Using usr can cause problems in a script. Like instead of doing this:

obj/Pizza
verb/Eat()
usr << "You eat the pizza!"
usr.hp + 10


I'd do this:

obj/Pizza
verb/Eat()
var/mob/M = usr
M << "You eat the pizza!"
M.hp + 10




In response to DBZ.Omega
nice ^^
i was thinking about that over-night :P




            if("Gryffindor")
src.house = "Gryffindor"
src.gryffindor = 1
src.ravenclaw = 0
src.slytherin = 0
src.hufflepuff = 0
src.loc=locate(43,95,4)
var/obj/gryffindorcloak/GC = new/obj/gryffindorcloak
GC.loc = src



:/ have to use usr here? coz i get errors "src.gryffindor undefined var"
In response to DBZ.Omega
DBZ.Omega wrote:
No, you don't even know the basic, basic, basics apparently. Don't even bother trying to make a game until you do.

> mob/Login()
> src.icon = 'icon.dmi'
> src.loc = locate(1,1,1)
>


You should always call ..() in mob/Login(). Naughty boy. Also, you don't have to set the icon in mob/Login() that can just be done under mob.
In response to Tiberath
i see everyone has a different opinion here... my codin is like that coz no one ever helped me.
In response to Gogeta126
Gogeta126 wrote:
i see everyone has a different opinion here... my codin is like that coz no one ever helped me.

When programming, opinion matters not. All that matters is everyone adhere to the rules of good programming for that specific language.
In response to Tiberath
*imitates yoda* opinion....matters not! with the force you must unite! hm!

hehe.

i guess. can someone read and reply the post by "The polish productions" ? need help.
In response to Gogeta126
Never the less, the general consensus is correct. You can't ask various people to give you snippets and expect it to work. For starters, we all have our own programming style and as such, that might conflict with other users.

Not to mention, when one person doesn't know what the others are doing, time is going to get wasted, things are going to be done poorly and there will be conflictions.

The general consensus is: Never copy and paste code. The snippets given on the forums are made for example. It's up to the receiver to read what they were given, learn how the code works, then at the very least, adapt it into their own code.
In response to Tiberath
but...if someone plans on doing exactly the same as snippet... why bother re-writin
In response to Gogeta126
Gogeta126 wrote:
but...if someone plans on doing exactly the same as snippet... why bother re-writin

If they're asking for help. There is absolutely no way they're planning on doing the snippet the same way.

Besides it's all about how the code is written. Those providing the help are only going to compile the snippet itself in the very most basic sense, just to test it works as it is. It is in no way adapted or configured outside of the environment it was written in.

A snippet written up in a very basic environment, isn't going to work in an advanced environment the requester wants it for. Thus is the basis of learning.
In response to Tiberath
we are going WAY off topic buhaha
Page: 1 2