New Code: Targets

Timezone: Central Time (US & Canada) (GMT-06:00)
� Previous :: Next �
AuthorMessage
Bane
Dungeonmaster
New Code: Targets
Friday, October 16th, 2009 at 9:12 pm
In preparation for bard changes (Targeted, pulsing songs), I've added targeting ability to the mud. It will likely be live with the 2.44b code push in a few days.

: k
Attack what?
: tar gua
You are now targeting Highport guardsman.
: k
Attacking target: Highport guardsman.
You punched the Highport guardsman for 45 damage.
: k
Attacking target: Highport guardsman.
You punched the Highport guardsman for 44 damage.
: k
Attacking target: Highport guardsman.
You punched the Highport guardsman for 43 damage.
: k
Attacking target: Highport guardsman.
The Highport guardsman somehow manages to dodge your attack.
: k
Attacking target: Highport guardsman.
You punched the Highport guardsman for 44 damage.
You killed the Highport guardsman.
You gain 30 experience for the death of the Highport guardsman.
Your faction standing with The Highport Guard has gotten worse. (200)
You are no longer targeting Highport guardsman!
: k
Attack what?

zerk
Re: New Code: Targets
Saturday, October 17th, 2009 at 9:19 am
does the targeting stop after the mob dies? Just curious how it works if there are multiples of the same mob in the room.

Bane
Dungeonmaster
Re: Re: New Code: Targets
Saturday, October 17th, 2009 at 10:01 am
zerk wrote:
does the targeting stop after the mob dies?

Yes. Once your target dies/logs off/becomes otherwise destroyed, you cease targeting them.

Quote:
Just curious how it works if there are multiples of the same mob in the room.


It targets whatever monster you pick. guard 1, guard 5, and no matter what number he becomes, always targets that particular mob, even if he wanders into another room.

ie: target guard 5, guard 1-3 walk away, he is now guard 2, but you don't care, he's still your target.

munch
Re: New Code: Targets
Saturday, October 17th, 2009 at 3:24 pm
Confused about this a little, are you required to target before attacking?
How does this work if you flee out of the room or if the target flees? Do you have to re-target them?
How about pets, If you target a mob does the pet automatically target the same mob or do you have to instruct them to target the same?
Lastly, what about offensive spell casting, does targeting cause offensive spells to be directed to your target?

Usagi
Re: Re: New Code: Targets
Saturday, October 17th, 2009 at 11:31 pm
munch wrote:
Confused about this a little, are you required to target before attacking?

** I don't think it is a requirement, but more of an option for less typing/confusion when you have multiple mobs in the room.

munch wrote:
How does this work if you flee out of the room or if the target flees? Do you have to re-target them?

** "It targets whatever monster you pick ... and no matter what number he becomes, always targets that particular mob, even if he wanders into another room." I would assume that applies to fleeing.

munch wrote:
How about pets, If you target a mob does the pet automatically target the same mob or do you have to instruct them to target the same?

** I'm actually wondering about this one, if the pet does not engage by itself (where it would normally pick whatever mob is attacking you). Should see if 'pet k' will command the pet to attack the target too.

munch wrote:
Lastly, what about offensive spell casting, does targeting cause offensive spells to be directed to your target?

** From my understanding, this should apply to anything you can do to a target. Which includes spell casting. So you'd only have to type 'c burn' w/ a target set.

Dominus
Dungeonmaster
Re: Re: Re: New Code: Targets
Sunday, October 18th, 2009 at 2:02 pm
Usagi wrote:
munch wrote:
Lastly, what about offensive spell casting, does targeting cause offensive spells to be directed to your target?

** From my understanding, this should apply to anything you can do to a target. Which includes spell casting. So you'd only have to type 'c burn' w/ a target set.

That'd get dangerous... when your target is dead, you start casting burn on yourself!
Angel Heaven doesn't want me and Hell is afraid I'll take over. Evil

Bane
Dungeonmaster
Re: Re: Re: Re: New Code: Targets
Sunday, October 18th, 2009 at 5:05 pm
Dominus wrote:
Usagi wrote:
munch wrote:
Lastly, what about offensive spell casting, does targeting cause offensive spells to be directed to your target?

** From my understanding, this should apply to anything you can do to a target. Which includes spell casting. So you'd only have to type 'c burn' w/ a target set.

That'd get dangerous... when your target is dead, you start casting burn on yourself!


I plan on adding a settable option, no casting offensive spells unless you specifically target yourself :P

Usagi
Re: New Code: Targets
Sunday, October 18th, 2009 at 10:42 pm
Oh! But please exclude the non-offensive spells for that.

Which reminds me, the enlarge/reduce messages are a little funky when you cast it on yourself.

(188 H 83 M): c reduce plu to fine
You cast a reduce spell on Plu.
Plu casts a reduce spell on you.
You shrink in size.

huklebuc
Re: Re: New Code: Targets
Monday, October 19th, 2009 at 7:50 am
The same thing applies to casting any spell on yourself if you type c (spell name) (your name).

c v huk
Vigor spell cast on Huklebuc.
Huklebuc Casts a vigor spell on you.

Realms ForumIn-Game DiscussionNew Code: Targets