ID:165874
 
How do i code a force feild verb
i got an idea but no results.

mob
verb
Force_feild()
if(stun==1 || death == 1 || orb == 1)
return
if(stamina[1] <= 20)
return
stamina[1] -= 20
set category = "Skills"
view() << './sound/ff.wav'



And Thats all i figured out
can any one help BUMP
You should *really* figure this out by yourself. We aren't here to tend to your every needs, you know.
I highly recommend that you click here and read the DM Guide. If you read all of it, I guarantee that you'll be able to do much more than create a "forcefeild".

I assume you mean something like this below:

obj/forcefield
density=1
icon='icons/forcefield/forcefield.dmi'
icon_state="1" //1 = on
Bumped(mob/M)
if(istype(M))
M<<sound('./sound/ff.wav')
...
verb/Toggle_Forcefield()
set src = oview(1)
density=!density
icon_state="[density]"

atom/proc/Bumped(atom/A)
atom/Bump(atom/A)A.Bumped(src)


A forcefield object which can be placed on the map. You can toggle the forcefield, and it will go on and off. If a mob bumps into it, a sound is played to the mob.

Now go. Go read the DM Guide. Understand what I've written here, or you shall perish.