I was Wondering if the user was able to block people off to it to them and so they can turn it on and off when they need so people cant it or teleport to them expect for gms of course can it to them either they have it on or off
How can i go about this since there is only more than 1 code for doing this
ID:169696
May 11 2005, 11:09 pm
|
|
In response to DeathAwaitsU
|
|
DeathAwaitsU wrote:
Well punctuation and grammar in your posts might help. Oh k thanks so what lines of coding so i start to get this into play? |
In response to Govegtos
|
|
Govegtos wrote:
Oh k thanks so what lines of coding so i start to get this into play? DeathAwaitsU wrote: Easily achievable through your best friend, if(). And please dont quote someone when it isn't neccessary. |
In response to DeathAwaitsU
|
|
It would be like:
mob/verb/BLOCK_IT() It would go something like this. Just work it into your game. some how. (Note: I have not tested this, indents ARE off. and I just thought of this form the top of my head!) |
In response to Crzylme
|
|
Crzylme wrote:
It would be like: > mob/verb/BLOCK_IT() It would go something like this. Just work it into your game. some how. Here are the errors i got when i entered that code in attack3.dm:10:error:block:undefined var attack3.dm:11:error:M:undefined var attack3.dm:13:error:Mx:undefined var attack3.dm:13:error:My:undefined var attack3.dm:13:error:Mz:undefined var attack3.dm:14:error:M:undefined var |
In response to Govegtos
|
|
I put it as an example.
Something from the top of my head >_> |
In response to Govegtos
|
|
mob/var This should work. I myself like to use -1 and 1 for easy toggling (which only makes 1 verb rather than 2) and can be done with less lines than I've done here. :) |
In response to EGUY
|
|
You shouldn't do if(variable==1) or if(variable==0) if that variable is boolean(which means that it can only ever be 1 or 0).
Instead do: if(variable) (for the same effect of ==1) and if(!variable) (for the same effect of ==0). |
In response to DeathAwaitsU
|
|
Not the same affect, if(var) will do anything that's not null, and if(!var) will do anything that's null. :p
|
Secondly, not everyone knows what "it" is. *I* know you mean IT(Instant Translocation) but saying "it" just doesn't help.
As for your main(although debateable) problem, make a boolean variable(a variable that is only 1 or 0: 1 if true, 0 if false) to check if the person who you're teleporting to is allowing teleportation or not. Easily achievable through your best friend, if().