Let's organize our project a bit make 4 folders, Graphics, Code, Interface and Maps and put the files in their folders. It should look like this:
Now open your Environment and you should have some errors, just plus those folders and check the files, press CTRL+K and it's done.
Now let's fix something.
Now let's create a code file and put it in Code folder, I'll call it Vars.dm... It's where I am gonna store all variables.
It should look like this:
The reason I am sharing the files is because I don't want to post 50 pictures explain everything..
So anything you need to know, ask me please. That doesn't have letterboxing (Black edges)
Interface Files
But then you have to put your:
I hope that was enough to understand, anything ask me. I'll try to explain better.
Now let's make a code file, I'll call it Verbs to store most of the verbs there .
Let's make a simpel world chat .. Do the following:
Create a code file and I'll call it Procs.dm and let's create our ChatColor() & IsWorldChatDisabled()procedure:
Anything you didn't understood, lemme know that I'l ltry to explain everything.
Now open your Environment and you should have some errors, just plus those folders and check the files, press CTRL+K and it's done.
Now let's fix something.
- Code:
turf
Misc
Grass
icon = 'Turfs.dmi'
// Switch that to this
turf
Misc
icon = 'Turfs.dmi'
Grass
icon_state = "Grass"
Now let's create a code file and put it in Code folder, I'll call it Vars.dm... It's where I am gonna store all variables.
It should look like this:
The reason I am sharing the files is because I don't want to post 50 pictures explain everything..
So anything you need to know, ask me please. That doesn't have letterboxing (Black edges)
Interface Files
But then you have to put your:
- Code:
world
name = "Bleach Game Tutorial"
map_format = TILED_ICON_MAP
view = "21x21" // 672x672 this is the size of the MAP (672 / 32) = 21 .. 32 is the icons size
mob = /mob/Alive
client
view = 10 // Now we want to find 21... So we do this -> (21 - 1) / 2
// That creates a value of 10 edges wich are 21 tiles long
I hope that was enough to understand, anything ask me. I'll try to explain better.
Now let's make a code file, I'll call it Verbs to store most of the verbs there .
Let's make a simpel world chat .. Do the following:
Create a code file and I'll call it Procs.dm and let's create our ChatColor() & IsWorldChatDisabled()procedure:
Anything you didn't understood, lemme know that I'l ltry to explain everything.
- Code:
proc
IsWorldChatDisabled()
return OOCToggle // It returns the value of our variable, if it's 1, OOC is disabled, 0 means it's not disable
ChatColor(mob/Alive/P) // Let's declare our player mob
if(P.Faction == "Earth") // If our player belongs to Earth
ChatColor = "green" // Chat will display green
if(P.Faction == "Hueco Mundo") // If our player belongs to Hueco Mundo
ChatColor = "grey" // Chat will display grey