ID:268423
 
<_<;
Help will be GREATLY appreciated... I'm very sorry if I waste your time, as for lost time can not be restored.

Question #1: Moving objects, as in, use the skill "Arrow", an arrow flies in a straight line infront of you...

Question #2: I'm trying to make it after you use a certain skill on something, it dissapears. Like... "You mine into the stone, thus cracking it open!"... It's an Object... should I make it a turf?

Question #3: How do I get it so the center key, (5) uses the attack command?

Anyways, as said... Help will be GREATLY appreciated. Sorry for waisting your time.</_>
Question #1: Moving objects, as in, use the skill "Arrow", an arrow flies in a straight line infront of you...

look up walk() in the reference.


Question #2: I'm trying to make it after you use a certain skill on something, it dissapears. Like... "You mine into the stone, thus cracking it open!"... It's an Object... should I make it a turf?

Not sure what you mean...


Question #3: How do I get it so the center key, (5) uses the attack command?
client/Center()
In response to Airjoe
As for number 2, I basically need a mining system... I just need it to delete the object when done.
For example... if you're near a "big rock", the command mine appears. After you use mine, I want the rock to go poof, vanish...

And, I'm off to go see if the Move() proc will make the arrow attack =/
In response to Hell Ramen
just use del.

obj/BigRock/verb/Mine()
usr<<"HELLO!"
del src
In response to Airjoe
Ahh, thank you.
In response to Airjoe
Airjoe wrote:


Question #3: How do I get it so the center key, (5) uses the attack command?
client/Center()
Heh ^_^;;, I can't find out where to put that in the "Attack" verb...
In response to Hell Ramen
no no no, you put the attack verb in client/Center()
In response to Airjoe
client/Center()
verb
client/Center()
Attack(mob/M as mob in oview(1))
if (M.HP <= 0)
usr << "The [M] is already dead..."
else

usr << "<font color = purple>You attack [M]!"
oview() << "<font color = red>[usr] attacks [M]!"
var/damage = rand(1,10)
world << "<font color = green>[damage] damage!"
M.HP -= damage
M.DeathCheck()


verbs.dm:13:error: proc definition not allowed inside another proc


Eh... I'm so confused...
In response to Hell Ramen
it means you have one thing ending with () after another ending with () i dont know what line the error is from but try taking out the second client/centre()
In response to Hell Ramen
Hell Ramen wrote:
>client/Center()
> var/mob/M as mob in oview(1)
> if (M.HP <= 0)
> usr << "The [M] is already dead..."
> else
> usr << "<font color = purple>You attack [M]!"
> oview() << "<font color = red>[usr] attacks [M]!"
> var/damage = rand(1,10)
> world << "<font color = green>[damage] damage!"
> M.HP -= damage
> M.DeathCheck()


I fixed it up, but you might want a better damage formula and you might want to make it so it waits a few seconds before allowing them to attack again.
In response to DarkCampainger
DarkCampainger wrote:
> Hell Ramen wrote:
> >client/Center()
> > var/mob/M as mob in oview(1)
> > if (M.HP <= 0)
> > usr << "The [M] is already dead..."
> > else
> > usr << "<font color = purple>You attack [M]!"
> > oview() << "<font color = red>[usr] attacks [M]!"
> > var/damage = rand(1,10)
> > world << "<font color = green>[damage] damage!"
> > M.HP -= damage
> > M.DeathCheck()
>


I fixed it up, but you might want a better damage formula and you might want to make it so it waits a few seconds before allowing them to attack again.

Oi... DM does hate me!
verbs.dm:9:error:oview :unexpected 'in' expression</DM
In response to Hell Ramen
Hell Ramen wrote:
DarkCampainger wrote:
> Hell Ramen wrote:
> > >client/Center()
> > > var/mob/M as mob in oview(1)
> > > if (M.HP <= 0)
> > > usr << "The [M] is already dead..."
> > > else
> > > usr << "<font color = purple>You attack [M]!"
> > > oview() << "<font color = red>[usr] attacks [M]!"
> > > var/damage = rand(1,10)
> > > world << "<font color = green>[damage] damage!"
> > > M.HP -= damage
> > > M.DeathCheck()
> >


I fixed it up, but you might want a better damage formula and you might want to make it so it waits a few seconds before allowing them to attack again.

Oi... DM does hate me!
verbs.dm:9:error:oview :unexpected 'in' expression


DarkCampaigner: Don't help people if you yourself do not understand how to do that.

HellRamen: Just replace the first line of client/Center() with this:
var/mob/M = locate() in get_step(mob,mob.dir)
if(M)
// then indent everything else
In response to Unknown Person
Whoamg DL...
<_<
In response to Unknown Person
_<;; Geez, I'm such a dang newb... ._. I hope one day I get good like you guys...
client/Center()
var/mob/M = locate() in get_step(mob,mob.dir)
if(M
var/mob/M as mob in oview(1)
if (M.HP <= 0)
usr << "The [M] is already dead..."
else
usr << "<font color = purple>You attack [M]!"
oview() << "<font color = red>[usr] attacks [M]!"
var/damage = rand(1,10)
world << "<font color = green>[damage] damage!"
M.HP -= damage
M.DeathCheck()

._.
Error:
verbs.dm:11:error: var: missing comma ',' or right-paren ')'

It's either...
A. I don't listen good enough,
B. I need more skill...
C. I just plain suck and never will get this.
In response to Hell Ramen
Hmmm... I wonder if I move that down a line... *goes to try*
In response to Hell Ramen
Nope, no success...