#include <deadron/characterhandling>
client
script = "<STYLE>BODY {background: black; color: red} </STYLE>"
base_num_characters_allowed = 3
#define BASE_MENU_CREATE_CHARACTER "Create New Character"
#define BASE_MENU_DELETE_CHARACTER "Delete Character"
#define BASE_MENU_CANCEL "Cancel"
#define BASE_MENU_QUIT "Quit"
world
mob= /mob/creating_character
view= 6
name= "Naruto New Adventure"
mob/creating_charater
Login()
..()
world << "[usr] has just Logged in '[world.name]'!"
src.CreateCharacter()
proc/CreateCharacter()
var/mob/new_mob
var/char_name
while(!char_name)
char_name = input ("Please put your character name in here.","Name") as null|text
var/char = input(src,"Pick your character!") in list ("Ice Clan","Sand Clan","Uchiha Clan","Water Clan","Wind Clan","None")
switch(char)
if("Ice Clan")
new_mob = new/mob/player/IceClan
if("Sand Clan")
new_mob = new/mob/player/SandClan
if("Uchiha Clan")
new_mob = new/mob/player/UchihaClan
if("Water Clan")
new_mob = new/mob/player/WaterClan
if("Wind Clan")
new_mob = new/mob/player/WindClan
if("None")
src.Logout()
new_mob.name = char_name
new_mob.loc = loc(2,2,1)
src.client.mob = new_mob
..()
del(src)
mob/player
IceClan
icon = 'Online Player.dmi'
SandClan
icon = 'Online Player.dmi'
UchihaClan
icon = 'Online Player.dmi'
WaterClan
icon = 'Online Player.dmi'
WindClan
icon = 'Online Player.dmi'
client/Del()
world << "[usr] has Logged Out!"
..()
mob/Logout()
del(src)
ID:1698216
Oct 12 2014, 5:16 pm
|
|
Code:
|
Oct 12 2014, 5:18 pm
|
|
error starts from if("Ice Clan") down to new_mob.name= char_name
|
You've got a couple of spaces hiding in-between the tabs on those lines, remove those and you should be good.
|
Indentation error means you are either messing up your indentation (which does not appear to be the case) or mixing tabs + spaces for indentation (very likely). You must indent with one, not a mixture.
To show the tab indentation, press CTRL + T or Options > Show Tabs. I suggest de-indenting (SHIFT-Tab) those lines (or at least the first one) and retab; that should fix both issues. |
Alright so I fixed it. I have added Icon_state because when I run the map to test, it wont load an icon for some reason. Anyway, when I have Icon_state, I know it loads JUST THAT STATE. But when I want to go North South East and West I want the icon to look like he is running. I have the icon set up as M in the dmi file. but how can I code in the running animation?
|