ID:146261
 
Code:
mob/npc
Brolli
name = "Broli (NPC)"
icon='mobs.dmi'
icon_state="brolli"
verb/Talk()
set src in oview(1)
set category="NPC"
if(usr.gotporattaearrings==0)
alert("I will give you Poratta Ear Rings, they can be used to fuse.")
usr.gotporattaearrings=1
usr<<"<I>You recieved poratta ear rings."
new/obj/poratta/earrings(usr)
else{usr<<"I already gave you poratta ear rings. Sorry.";return}
obj/poratta/earrings
icon='pottara.dmi'
name="Poratta Ear Rings"
verb
Wear()
set category="Utilities"
if(src.worn==1){src.worn=0;usr.overlays-='pottara.dmi';usr<<"You remove the [src.name]."}
else{src.worn=1;usr.overlays+='pottara.dmi';usr<<"You wear the [src.name]."}
Drop()
set category = "Utilities"
usr<<"You cannot drop Poratta Ear Rings, silly."
return
Fuse()
set category="Fight"
for(var/mob/M in oview(1))
if(usr.fused==1){usr<<"Your already fused.";return}
if(istype(M,/mob/npc)){usr<<"You can't fuse with that.";return}
else if(istype(M,/mob/player))
if(M.fused==1){usr<<"[M] is already fused.";return}
M.fvote=0
usr.fvote=0
switch(alert(M,"[usr] wishes to fuse with you. Do you wish to Accept or Decline?","Fusion","Accept","Decline"))
if("Accept")
usr<<"<B>[M] has accepted your offer to fuse."
M<<"<B>You accepted [usr]'s offer to fuse."
switch(alert(usr,"Who do you place your vote on, who should lead the fusion?","Fusion","You","[M]"))
if("You")
usr<<"<B>You voted for yourself!"
M<<"<B>[usr] voted for his/herself."
usr.fvote++
else
usr<<"<B>You voted [M]!"
M<<"<B>[usr] voted you."
M.fvote++
switch(alert(M,"Who do you place your vote on, who should lead the fusion?","Fusion","You","[usr]"))
if("You")
usr<<"<B>[M] voted for his/herself."
M<<"<B>You voted for yourself!"
M.fvote++
else
usr<<"<B>[M] voted you."
M<<"<B>You voted [usr]!"
usr.fvote++
if(usr.fvote==1&&M.fvote==1)
usr<<"<B>Vote Tally: 1 vote [usr]. 1 vote [M]."
M<<"<B>Vote Tally: 1 vote [usr]. 1 vote [M]."
usr<<"<B>The fusion was un-successfull due to a ie in votes. Please come to an agreement and try again."
M<<"<B>The fusion was un-successfull due to a ie in votes. Please come to an agreement and try again."
else if(usr.fvote==2)
M.oicon=M.icon
usr.oicon=usr.icon
usr<<"<B>Vote Tally: 2 votes [usr]. 0 votes [M]."
M<<"<B>Vote Tally: 2 votes [usr]. 0 votes [M]."
usr<<"<B>[usr] won the vote. He will be the leader of the fusion!"
M<<"<B>[usr] won the vote. He will be the leader of the fusion!"
view(10)<<"<B><U>~~~ [usr] and [M] fuse into one ~~~"
view(10)<<"<B><U>~~~ There power goes up ~~~"
M.icon='fused.dmi'
usr.contents+=M.contents
usr.overlays+=M.overlays
M.fused=1
usr.fused=1
M.overlays=0
M.loc=locate(usr.x,usr.y,usr.z)
usr.overlays=0
usr.overlays+='fused_hair.dmi'
for(var/obj/I in contents)
I.worn=0
M.follow = usr.name
M.fusionfollow()
else if(M.fvote==2)
usr.oicon=M.icon
M.oicon=usr.icon
M<<"<B>Vote Tally: 2 votes [usr]. 0 votes [M]."
usr<<"<B>Vote Tally: 2 votes [usr]. 0 votes [M]."
M<<"<B>[usr] won the vote. He will be the leader of the fusion!"
usr<<"<B>[usr] won the vote. He will be the leader of the fusion!"
view(10)<<"<B><U>~~~ [usr] and [M] fuse into one ~~~"
view(10)<<"<B><U>~~~ There power goes up ~~~"
usr.icon='fused.dmi'
M.contents+=M.contents
M.overlays+=M.overlays
usr.fused=1
M.fused=1
usr.overlays=0
usr.loc=locate(usr.x,usr.y,usr.z)
M.overlays=0
M.overlays+='fused_hair.dmi'
for(var/obj/I in contents)
I.worn=0
usr.follow = usr.name
usr.fusionfollow()
if("Decline")
usr<<"<B>[M] declined your offer to fuse with him."
M<<"<B>You declined [usr]'s offer to fuse."
return
else{usr<<"You can't fuse with that.";return}
Un_Fuse()
set category="Fight"
for(var/mob/M in world)
if(M.follow==usr.name)
M.follow=""
usr.fused=0
M.fused=0
usr.overlays=0
usr<<"<B>The fuse was broken."
M<<"<B>The fuse was broken."
M.icon=M.oicon
for(var/obj/I in usr.contents)I.worn=0
for(var/obj/A in M.contents)A.worn=0
mob/proc/fusionfollow()
for(var/mob/player/M in world)
if(src.follow == usr.name)
if(!src){return}
if(src==null)return
src.loc = usr.loc
sleep(1)
src.fusionfollow()
else ..()
client
Move()
for(var/mob/player/M in world)
if(usr.follow==M.name){return}
else ..()
.=..()


Problem description:
the errors i have are liek undefined var so how would i define a var errors are this.


test.dm:30:error:usr.fused:undefined var
test.dm:33:error:M.fused:undefined var
test.dm:34:error:M.fvote:undefined var
test.dm:35:error:usr.fvote:undefined var
test.dm:44:error:usr.fvote:undefined var
test.dm:48:error:M.fvote:undefined var
test.dm:53:error:M.fvote:undefined var
test.dm:57:error:usr.fvote:undefined var
test.dm:58:error:usr.fvote:undefined var
test.dm:58:error:M.fvote:undefined var
test.dm:63:error:usr.fvote:undefined var
test.dm:64:error:M.oicon:undefined var
test.dm:65:error:usr.oicon:undefined var
test.dm:75:error:M.fused:undefined var
test.dm:76:error:usr.fused:undefined var
test.dm:83:error:M.follow:undefined var
test.dm:85:error:M.fvote:undefined var
test.dm:86:error:usr.oicon:undefined var
test.dm:87:error:M.oicon:undefined var
test.dm:97:error:usr.fused:undefined var
test.dm:98:error:M.fused:undefined var
test.dm:105:error:usr.follow:undefined var
test.dm:115:error:M.follow:undefined var
test.dm:116:error:M.follow:undefined var
test.dm:117:error:usr.fused:undefined var
test.dm:118:error:M.fused:undefined var
test.dm:122:error:M.oicon:undefined var
test.dm:137:error:usr.follow:undefined var
test.dm:127:error:src.follow:undefined var
test.dm:9:error:usr.gotporattaearrings:undefined var
test.dm:11:error:usr.gotporattaearrings:undefined var
test.dm:6:error:Talk :duplicate definition
menus.dm:1015:error:Talk :previous definition
test.dm:21:error:src.worn:undefined var
test.dm:21:error:src.worn:undefined var
test.dm:22:error:src.worn:undefined var
test.dm:82:error:I.worn:undefined var
test.dm:104:error:I.worn:undefined var
test.dm:123:error:I.worn:undefined var
test.dm:124:error:A.worn:undefined var


You're asking how to define a var? Are you sure you wrote that code..
mob/var
vars here = whatever
Stop ripping Zeta. =/
In response to Ol' Yeller
if so many people rip zeta, why don't they just close its source.
In response to Popisfizzy
It's spread so far out of BYOND to even attempt to.
Besides, many retarded people open up and say "HEY MY HUB PAGE IS GONE" *click click* "Ok there we go it's back up with my files"

I believe that somehow, when a BYONDAdmin DELTES a hub entry, it should also delete the hub entry on everyones compouters, then we MIGHT have a chance at exterminating zeta, or atleast any new ones from appearing....
In response to Flame Sage
it's not zeta it's zen lol,
and ayway this is a test to see if i can fuse people in zelda online source
In response to Popisfizzy
They can't because the owner put it up on the hub.
They could have taken it down if it wasn't put up witht he owners permission, but unfortunately they can't now.
In response to Ol' Yeller
No no no...Thats an exact copy of Dragonball Zen's Latest Fusion Coding..
In response to Englishkid
Englishkid wrote:
it's not zeta it's zen lol,
and ayway this is a test to see if i can fuse people in zelda online source

Zen = Zeta with a mask.

And, if your proud of ripping. Take some pride in checking out some tutorials. The only think wrong was all of those variables are not defined. Nothing that hard to do...
In response to Kaijuh
i'm proud but i try to define them and the errors don't go down i do what cheetoz said mob/var/I.worn like that but it doesn't work can someone give me an example of a few done and i'll fill the rest
In response to Game sabre
I.worn isnt a var stupid.. I is the var >.> worn var of a var >.> man ur stupid
In response to Xeronage
You're funny, using the : operator and making it seem all right, and then calling somebody stupid. ;)
In response to Englishkid
Why don't you learn how to program rather than making a game? It's like wanting to write a novel without knowing any letters.
i'm not that stupid as it doesn't work either can anybody actualy do it right?
In response to Englishkid
Englishkid wrote:
i'm not that stupid as it doesn't work either can anybody actualy do it right?

Judging from the sentence you just wrote I'd say you are "that stupid".

And judging from your inability to work out your problem you either are stupid or have very limited knowledge of DM.
In response to DeathAwaitsU
yes i've only really just started to learn so as your not stupid can you write a example of how i would do this defineing the vars that is
In response to Englishkid
No.

If you were really trying to learn you'd notice there's an entire chapter on variables in the DM Guide from where you should be trying to learn.
In response to Jamesburrow
Jamesburrow wrote:
They can't because the owner put it up on the hub.
They could have taken it down if it wasn't put up witht he owners permission, but unfortunately they can't now.

Couldn't Dan or Tom take it down? I mean it isn't like they can't do it if they want. Besides, i'm sure if they where to remove it, more people would be happy with them than those who wouldn't. Another problem is that people are passing it around on most likely. What is really pathetic is that the people making these don't even have the ability to use a bit of effort and learn to make something original. Alot of them change a few of the text colors then make a hub and say "OMG 100% Non ZeTA!" or something simular.

And the reason your code has problems is because you didn't make it yourself, and you obviously have no idea what you're doing. And you say it is Zen, anyone should be able to notice that Zen is just an edited Zeta. And why are you proud of ripping something? Are you proud you've just made the community a bit worse with one more Zeta rip, or proud of the fact that you where just too lazy to take the time to actually learn the DM language?

Anyways, it doesn't matter now, Zeta might have been fun for some if there was only one of them, but now all of them are just a big annoyance for just about everyone. Even though it will never happen because no one with enough power to do so seems to care or have the time, I think all Zeta rips should be shut down and their hubs deleted. Then anyone who where to be caught with another one should be banned. And what is really horrible is that i've even seen people making other games rather than Dragonball out of a Zeta. Oh well, I guess we will just have to continue to put up with them because there isn't a thing the members can really do to stop them.
In response to Mazoku
Mazoku wrote:
Couldn't Dan or Tom take it down? I mean it isn't like they can't do it if they want.

Couldn't those people then put theirs back up? Aren't their about 1000 zeta games?

Page: 1 2