First i thought i could use Entered and Exited. but this will not damage them if the object is created at their location.
so what i thought was i could do this:
for(var/mob/M in oview(0)) // or something?
sleep(50)
M.hp -= rand(4,8)
ID:157510
Feb 24 2010, 2:55 am
|
|
Well here's the clue. what i want is to make a player created object able to damage people, not trough it being dense and using Bump(). but rather something that will damage them when it is created on/in their location.
First i thought i could use Entered and Exited. but this will not damage them if the object is created at their location. so what i thought was i could do this: for(var/mob/M in oview(0)) // or something? |
In response to Redslash
|
|
This seems to be something like i wanted it:P
However, i want the object to continiously?(repeatedly) damage to the mob and not be deleted before a certain amount of time (set by player) has past. Don`t worry about the time thing, i think i have that worked out. Anyways, i think i will be able to take what you have here and configure it to what I`m looking for :) Thanks :) |
In response to Zeppo
|
|
Try modding it and using spawn()
|
In response to Darkjohn66
|
|
depends, did you get the answers you wanted?
if not, you either give bad explainations to the problem or what you want to do, i also find that it helps to give an example of how you have tryed to solve the "problem", that way giving them a better idea of what it is you are trying to achieve. |
In response to Zeppo
|
|
Idk. Anyways, I would like to see how to change the coordinates of that attack to say a targeted mob, or just place it 1 space away from the mob without having to enter any text. Im going to try to mod it.
I need to figure out how to set up variablles for the mobs location. placebomb2() Edit:I got it placebomb2() |
In response to Darkjohn66
|
|
Why doesnt this do anything at all and how can I fix it? All it does is create the objs.
mob |
In response to Darkjohn66
|
|
It does nothing because locate(x,y,z) gives you a turf, not a mob.
|
Edit: Added comments, but not sure if they were needed. Oh well...