Bleach World Wide Adventures

Welcome to the Bleach World Wide Adventures forums!

Join the forum, it's quick and easy

Bleach World Wide Adventures

Welcome to the Bleach World Wide Adventures forums!

Bleach World Wide Adventures

Would you like to react to this message? Create an account in a few clicks or log in to continue.

    Let's Make a Game With Byond (II)

    avatar
    Shy Hooker


    Posts : 35
    Reputation : 0
    Join date : 2013-06-02

     Let's Make a Game With Byond (II) Empty Let's Make a Game With Byond (II)

    Post  Shy Hooker Fri Jun 14, 2013 7:05 pm

    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:

     Let's Make a Game With Byond (II) Folder10

    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:

     Let's Make a Game With Byond (II) Code310

    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 Smile.
    Let's make a simpel world chat Very Happy .. Do the following:

     Let's Make a Game With Byond (II) Code410

    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

      Current date/time is Thu Nov 14, 2024 10:32 pm