ID:146342
 
My game is a dbz game and i want to know what i am doing wrong

obj
it
verb
Instant_Transmission(mob/characters/M in world)
set name = "Instant Transmission"
set category = "Fighting"
if(M.block)
usr << "[M] has blocked transmissions."
return
...
mob/var
block

mob/verb/IT_Block()
if(!Block)
src << "You block IT"
src.Block=1
else
src << "You unblock IT"
src.Block=0

mob/var
Block


I want to make it so players can block it and other players cant it to them but when they have it unblocked i cant it to myself

it stands for instant transmission

Can anyone help me?
You really want to know what you are doing wrong? Making a DBZ game in the first place. Make something original, we have enough DBZ games.
In response to Bringer of Flames
Bringer of Flames wrote:
You really want to know what you are doing wrong? Making a DBZ game in the first place. Make something original, we have enough DBZ games.

he isn't doing anything wrong on that part. its Build Your Own Net Dream. he can create what he wants, he's just creating his 'net dream'. just because there are lots of dbz games doesn't mean he can't make one. He has the right to create what he wants and I don't think you can stop him.

and also, why do you actually care about it? if you don't like it simply ignore it. Telling him that its wrong to create what he wants, thats wrong.

O-matic
Why do you have a block var, and a Block var? =|
In response to O-matic
I am not trying to stop him in any way, I'm just saying that there are a clutter of them and it would be nicer to have an original game. Didn't mean for it to sound mean, or anything. >_>
In response to Bringer of Flames
yeah I know there are alot, but 9/10 of them just.. suck <.<. there are only a few good dbz games.
I blame the zeta source! =P

O-matic
I think this is the third thread wich you posted this code in. anywa. why would you want to teleport to yourself?
I mean you're standing at the place you are, so why a teleport to yourself? >_>

And like Elation asked, Why on earth have you defined 'Block' twice?

O-matic
obj
it
verb
Instant_Transmission(mob/characters/M in world)
set name = "Instant Transmission"
set category = "Fighting"
if(M.block)
usr << "[M] has blocked transmissions."
return
mob/var
block

mob/verb/IT_Block()
src << "You [block ? "un" : ""]block IT"
src.block = !src.block


Learning how to program helps. DM is case-sensitive, that's basic knowledge. Making a Block var and a block var just to stop a compile time error won't mean your code will work.

Programming is about *logic*.

Go here.
In response to Elation
Also, knowing how you copy and paste, you really have "..." in your snippet.


Learn how to program!
In response to O-matic
O-matic wrote:
And like Elation asked, Why on earth have you defined 'Block' twice?

I'm suspecting he forgot about the case sensitivity, and when it told him "Block" wasn't defined (whereas block was, he just messed up on his if() statements), he made a new var called Block.

Obviously then, block and Block would both be completely different things.
In response to N1ghtW1ng
=/ Heh.
In response to Elation
oh, I didn't see that one of the two "block"'s has a capitalized first letter.

yep, he screwed his code. :p

O-matic
I can see a few problems in it.
1) Don't rip from Zeta
2) Don't just copy & paste code from the forums
3) Don't rip from Zeta.
In response to Ol' Yeller
Thank you all ill take this all under consideration