ID:147388
 
In my game i am trying to make a chariot race feature. I have the user controlling the horse part and im trying to get the actual chariot to follow. it doesnt work. The chariot is being created, but it is just staying there, not following the horses. here is all the code fragments for the chariot:
mob
turf
warp5
icon = 'turfs.dmi'
icon_state = "path"
Entered(mob/M)
M.loc = locate(23,17,1)
Exited(mob/M)
M.verbs += /mob/verb/Attack
warp6
icon = 'turfs.dmi'
icon_state = "path"
Entered(mob/M)
M.loc = locate(24,17,1)
Exited(mob/M)
M.verbs += /mob/verb/Attack
warp7
icon = 'turfs.dmi'
icon_state = "path"
Entered(mob/M)
M.loc = locate(23,15,1)
M.icon = 'Dude.dmi'
Exited(mob/M)
M.icon = 'Chariot.dmi'
M.icon_state = "horses"
M.overlays = ""
M.shoes_equipped = 0
M.pants_equipped = 0
M.shield_equipped = 0
M.helmet_equipped = 0
M.mail_equipped = 0
M.gmarmor_equipped = 0
M.shirt_equipped = 0
M.weapon_equipped = 0
src.overlays += new /obj/chariot/
M.verbs -= /mob/verb/Attack
warp8
icon = 'turfs.dmi'
icon_state = "path"
Entered(mob/M)
M.loc = locate(24,15,1)
M.icon = 'Dude.dmi'
Exited(mob/M)
M.icon = 'Chariot.dmi'
M.icon_state = "horses"
M.overlays = ""
M.shoes_equipped = 0
M.pants_equipped = 0
M.shield_equipped = 0
M.helmet_equipped = 0
M.mail_equipped = 0
M.gmarmor_equipped = 0
M.shirt_equipped = 0
M.weapon_equipped = 0
src.overlays += new /obj/chariot/
M.verbs -= /mob/verb/Attack
obj
chariot
icon = 'Chariot.dmi' //defines the icon
icon_state = "chariot" //defines the icon state
layer = MOB_LAYER // defines the layer
density = 1 //defines the dinsity
New() //New() proc
pixel_y = 32 //this makes the whole thing come together, it displaces the icon by x amount of pixels x or y
chariot2
icon = 'Chariot.dmi'
icon_state = "chariot"
horses
icon = 'Chariot.dmi'
icon_state = "horses"

HELP!!
I made a test, and used Ebonshadow's movement library and multi tile demo, and can get it to work going north, but when i go south, east, or west , the chariot doesnt move with the horses, it stays in the same place.

maybe if I knew what this code meant:

move_AddFOBJ(icon('BaseMultiTile.dmi',,icon_state="ur"),"ur" ,1,0)
move_AddFOBJ(icon('BaseMultiTile.dmi',,icon_state="bl"),"bl" ,0,-1)
move_AddFOBJ(icon('BaseMultiTile.dmi',,icon_state="br"),"br" ,1,-1)

i could figure it out on my own. Plz Help!