obj
fusion
name = "Poratta Earrings"
icon = 'poratta.dmi'
verb
Wear()
set category = "Inventory"
if(src.worn == 1)
src.worn = 0
usr.overlays -= 'poratta.dmi'
usr << "You remove the [src.name]."
usr.poratta = 0
else
src.worn = 1
usr.overlays += 'poratta.dmi'
usr << "You wear the [src.name]."
usr.poratta = 1
Drop()
set category = "Inventory"
if(src.worn == 1)
usr << "Not while its being worn."
if(src.worn == 0)
src.loc=locate(usr.x,usr.y+1,usr.z)
Get()
set category = "Inventory"
set src in oview(1)
Move(usr)
Fuse(mob/characters/M in oview(1))
set category = "Fighting"
if(usr.hasfused==1||M.hasfused==1)
else
if(M.poratta == 1)
if(usr.hasfused == 1)
usr.powerlevel += 0
else
var/lead = copytext(usr.name,1,5)
var/load = copytext(M.name,6)
var/lead2 = copytext(M.name,1,5)
var/load2 = copytext(usr.name,6)
usr.random = 1
M.random=2
if(usr.random == 1)
var/hairover = 'hairstrip.dmi'
hairover += rgb(M.rhair,M.ghair,M.bhair)
usr.overlays += hairover
if(M.random == 2)
var/hairovertwo = 'hairstrip2.dmi'
hairovertwo += rgb(usr.rhair,usr.ghair,usr.bhair)
M.overlays += hairovertwo
view(6) << "[M] and [usr] fuse to make [lead][load]!!!"
view(6) << "<font face = arial><tt>---===FUSION HA!!!===---"
// M.icon = usr.icon
M.density = 1
// M.overlays = usr.overlays
M.move = 1
// M.plarper = 1
M.name = "[lead2][load2]"
usr.name = "[lead][load]"
// usr.overlays += M.overlays
// M.overlays = usr.overlays
M.contents += new /obj/GotenkArmor
usr.contents += new /obj/GogetaArmor
M.overlays+='GotenkVest.dmi'
usr.overlays+='GogetaVest.dmi'
M.loc=locate(usr.x,usr.y,usr.z)
M.follow = usr.name
//M.fusionfollow()
usr.maxpowerlevel += M.maxpowerlevel
M.maxpowerlevel=usr.maxpowerlevel
usr.hasfused=1
M.hasfused=1
mob
proc
fusionfollow()
for(var/mob/characters/M in world)
if(src.follow == usr.name)
src.loc = usr.loc
sleep(1)
src.fusionfollow()
else
..()
Problem description:
Ok, so this code will do the fusion, but the two people are still two people, just there names are mixed up. Can some1 tell me what went wrong and why it won't tdo the follow right? And can someone also tell me how to make it seperate once this actually does work? Thanks in advance.