ID:171052
 
does anyone know how to make a turf is invisible and when you step on it it takes a verb away?
turf
Entered(mob/M)
M << "Whoamg Invis"
src.invisibility = 101

:)
That should work.
Let's say you wanted to take an Attack verb away from the unfortunate stepper.
turf/Trap
Entered(mob/M)
M.verbs-=/mob/verb/Attack/
M << "Your foot gets stuck in a [src] and you lose the ability to attack!"


Now, let's look at this line by line for comprehension. First, we'll need to define a turf and name it something, how about, "Trap"?
turf/Trap

Now, you'll notice that I didn't define an icon. This is because when a turf has no icon, it's automatically invisible.

Now, we need something to happen when the player steps on the turf, so, of course, there's nothing better to use than turf/Entered(. Since, obviously, a mob is going to be entering the turf, we'll type cast to a mob.
    Entered(mob/M)


Now, we need to take away the Attack verb, so
        M.verbs-=/mob/verb/Attack/


Finally, we should inform the player that attack's been taken from him to avoid unnecessary confusion:
        M << "Your foot gets stuck in a [src] and you lose the ability to attack!"


Now, you'll notice that in Entered(), I used mob/M instead of just plain src. Why? Because since Entered() 'belongs' to the turf, src, the source, would be equal to turf/Trap! Therefore, the final line outputs:
"Your foot gets stuck in a trap and you lose the ability to attack!"
In response to Wizkidd0123
ya, that should work, but i wasnt making it for that purpose, i made it to put in gyms so poeple couldnt fight when training.BUT THANKS!
In response to Wizkidd0123
Whoops, I misunderstood his post, completely. ;(
In response to Hell Ramen
you could always use Safe Zones


so when they enter you can make a safe = 1 var and then in your attack code if safe = 1 they cant attack
In response to Dranzer_Solo
What relevance does that have to anything in this post?
In response to DeathAwaitsU
DeathAwaitsU wrote:
What relevance does that have to anything in this post?
does anyone know how to make a turf is invisible

_>
In response to DeathAwaitsU
are you an idiot Death?


ya, that should work, but i wasnt making it for that purpose, i made it to put in gyms so poeple couldnt fight when training.BUT THANKS!

SO there for instead of taking the verb away all he has to do is make a safe zone so how ISNT that relivent to this post?
In response to Dranzer_Solo
Dranzer_Solo wrote:
are you an idiot Death?


ya, that should work, but i wasnt making it for that purpose, i made it to put in gyms so poeple couldnt fight when training.BUT THANKS!

SO there for instead of taking the verb away all he has to do is make a safe zone so how ISNT that relivent to this post?

Dranzer, you replied to the wrong post. In other words, YOU posted that completely out of context, not to mention that your particular method is harder anyway (Using your method, he'd have to modify his fighting verb(s), modify his tiles, AND every time he wanted to make a new tile for the gym, he'd have to worry about an extra thing).

Look, that type of arrogant, "I'm better than you" flaming on the forums is bad enough, but when you're replying to the wrong post anyway...
In response to Wizkidd0123
how did i reply to the wrong post ? its the same frgin thread
In response to Dranzer_Solo
Dranzer_Solo wrote:
how did i reply to the wrong post ? its the same frgin thread

I recommend clicking me as of I can barely understand what you're typing
In response to Hell Ramen
hmm you must be an idiot because i spelt every word correctly accept for ""Frgin"" or perhaps your just retarded
In response to Dranzer_Solo
Dranzer_Solo wrote:
hmm you must be an idiot because i spelt every word correctly accept for ""Frgin"" or perhaps your just retarded

Whoops, wrong site.
Still hard to read what you're saying.
In response to Hell Ramen
hmm so.... i dont use periods, ect and maybe you should shut your trap




http://piv.pivpiv.dk/
In response to Dranzer_Solo
Dranzer_Solo wrote:
hmm so.... i dont use periods, ect and maybe you should shut your trap




http://piv.pivpiv.dk/


XD, that site is so easy to not get pop-up'D by.

You could've done something better.
That's just immature, and also...


Hmm, so... I dont use periods, commas, et cetera. So, maybe you should shut your trap.


Wouldn't it hurt just to take about 1 minute to fix up your grammar?
In response to Hell Ramen
couldnt you take a minuet to SHUT UP
In response to Dranzer_Solo
That isn't relevant because he never mentioned attacking or training. He doesn't want to prevent people from attacking/doing something in a certain place, he wants to remove a verb.

There can be several uses for it, one thats completely nothing to do with your post is that when you complete a certain quest, the turf removes a quest related verb instead of disabling it.

And if you weren't making it for the topic maker's purpose, the post is irrelevant and no one asked for a temporary disable code.

I just can't see where you added attacking/training in to the equation. You say "SO there for instead of taking the verb away all he has to do is make a safe zone" but if he wants to remove the verb why are you preventing the player from using the verb, HE WANTS TO GET RID OF IT.

turf
Thing
Enter(atom/movable/A)
if(ismob(A))
var/mob/M
M.verbs -= /mob/verb/CompleteQuest


That should work topic maker.

As for invisibility, you could either give it no icon or if you want to control invisibility, read what Hell Ramen posted.
In response to DeathAwaitsU
Again you musted be f**ked in the head


""""
ya, that should work, but i wasnt making it for that purpose, i made it to put in gyms so poeple couldnt fight when training.BUT THANKS!

""""
In response to DeathAwaitsU
DeathAwaitsU wrote:

As for invisibility, you could either give it no icon or if you want to control invisibility, read what Hell Ramen posted.

Yet, my theory would make the thing unusable, basically deleted.
So, don't mind my post. =/
Page: 1 2