Author Topic: How do I make a spell that targets a combatant or a location?  (Read 1045 times)

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9588
How do I make a spell that targets a combatant or a location?
« on: February 04, 2017, 04:22:36 PM »
The dc spell system is really good at giving you ways to target a combatant or a location, but not both in one spell.

Here is the situation:
I have a spell that  casts an area effect. The description of the spell says that you can target a specific location (in which case the spell is fixed to that spot for the duration of the spell) or you can target someone (and that someone can walk around with this effect on them). Now, as far as the effect goes, the AURA hooks are great, but just like spells, I have to choose location or combatant.

How do I proceed? If there is a way to accomplish my goal with what we have available now, could someone please point me int he right direction? :D And if we can't do this now, Paul, let's discuss how we move forward on this.

Online Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2138
Re: How do I make a spell that targets a combatant or a location?
« Reply #1 on: February 04, 2017, 04:50:04 PM »
Three questions for starters:

1) You are talking about combat.  Correct?

2) You want the spell to target a location and you
want that location to be dynamic....follow a combatant.
Correct? 

3) The spell effect will expire if the combatant dies. Correct?

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9588
Re: How do I make a spell that targets a combatant or a location?
« Reply #2 on: February 04, 2017, 05:01:28 PM »
Three questions for starters:

1) You are talking about combat.  Correct?
Sorry not say that earlier, but yes, I was talking about comabt, though the spell can be used outside of combat.

Quote from: Paul
2) You want the spell to target a location and you
want that location to be dynamic....follow a combatant.
Correct?

This would be easier, but it is more complicated. It could be cast on any location, and if the location has a combatant in it, the location or the combatant.

Quote from: Paul
3) The spell effect will expire if the combatant dies. Correct?
No. The spell effect will continue until either it's duration expires or combat ends, whichever comes first.

Online Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2138
Re: How do I make a spell that targets a combatant or a location?
« Reply #3 on: February 04, 2017, 07:52:10 PM »
Quote
It could be cast on any location, and if the location has a combatant in it, the location or the combatant.

This did not compute for me.  I cannot rearrange it in any
way that makes sense to me.  Here is my best guess at
rewording:

The spell can be cast on any location.  If no combatant is at
that location then the spell is anchored to that location and becomes
an area-effect spell.
If a character is at that location then the spell is applied to
that character and no spell is attached to the location itself.

It seems that maybe what would work is two spells, one of
which is used if the location is occupied and the other if the
location is empty.  Is it like that?

Offline SilentThief

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 883
Re: How do I make a spell that targets a combatant or a location?
« Reply #4 on: February 05, 2017, 12:37:55 AM »
hoping I can help

I *think* that what Manikus is saying is that an area effect combat spell should be both castable to a cell/target with an enemy as well as castable into a cell/target area that does not have an enemy standing in it. This would allow strategic placement of spells, for example casting a fireball spell onto the empty area on the other side of a line of enemies in combat, and the splash/area of effect could overlap the enemies but not hit your own characters

another example is casting a stinking cloud spell in combat to block a path to hold off or ensnare enemies who approach to attempt a melee attack

ST the hopeful helpful

edited a couple of times for clarity
« Last Edit: February 05, 2017, 12:43:01 AM by SilentThief »

Online Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2138
Re: How do I make a spell that targets a combatant or a location?
« Reply #5 on: February 05, 2017, 09:27:21 AM »
In simple words: Cast a spell on a location.

OK, we will wait for Manikus to let us know
if that was his intent.

I wonder how he would determine which cell to attack.

Offline Mechanaut

  • Jr. Member
  • **
  • Posts: 68
Re: How do I make a spell that targets a combatant or a location?
« Reply #6 on: February 05, 2017, 10:55:07 AM »
As I read it, it seems to suggest casting a spell on a location, but that if the location is occupied at the time of the casting then that entity is the recipient/target of the spell ~instead of the ground. And as such, the spell effects would continue to emanate from them wherever they go, for its duration; following them like a bad smell...  [Think of Cloudkill as an aura]

Offline SilentThief

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 883
Re: How do I make a spell that targets a combatant or a location?
« Reply #7 on: February 05, 2017, 11:13:57 AM »
As I read it, it seems to suggest casting a spell on a location, but that if the location is occupied at the time of the casting then that entity is the recipient/target of the spell ~instead of the ground. And as such, the spell effects would continue to emanate from them wherever they go, for its duration; following them like a bad smell...  [Think of Cloudkill as an aura]

Perhaps you are right. In FRUA, the silence 15 radius spell behaved like this, affecting those around it,but following the target if they are affected

ST the affected

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9588
Re: How do I make a spell that targets a combatant or a location?
« Reply #8 on: February 06, 2017, 01:48:52 PM »
In simple words: Cast a spell on a location.

OK, we will wait for Manikus to let us know
if that was his intent.

I wonder how he would determine which cell to attack.

Cast the spell on any location.

If chosen location has an entity:
Player can select location
OR
Player can select entity.

Online Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2138
Re: How do I make a spell that targets a combatant or a location?
« Reply #9 on: February 06, 2017, 08:27:50 PM »
Now it sounds as if the only thing that you want changed is
the method of selecting a location.  A location can be
selected by selecting a location of by selecting a combatant
and using his location as the selected location.

A mini-mod that sets up the situation would be very helpful.

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9588
Re: How do I make a spell that targets a combatant or a location?
« Reply #10 on: February 07, 2017, 01:11:34 PM »
Now it sounds as if the only thing that you want changed is
the method of selecting a location.  A location can be
selected by selecting a location of by selecting a combatant
and using his location as the selected location.

A mini-mod that sets up the situation would be very helpful.

Right now, I can choose any location, whether a combatant is there or not.
What I want to do is if I choose a location that has a combatant in it, I want to be able at the moment of sp  ellcasting to choose that location OR that particular combatant.
Is this how you understand it? If we are on the same page, I wil lget to making a mini-mod. :)

Online Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2138
Re: How do I make a spell that targets a combatant or a location?
« Reply #11 on: February 07, 2017, 06:38:57 PM »
You cast a spell and choose a location on the map
containing a combatant.  OK.
What should happen differently in the two cases:
1) You select 'Location'
2) You select 'Combatant'

How would you like to make that selection?
A menu choice appears for certain spells that
allow this sort of choice?  Not all spells allow
such a choice, I assume.  How would such spells
be identified by the engine?

Perhaps if you gave an example of a very particular
spell and why you would want to use it in this way.

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9588
Re: How do I make a spell that targets a combatant or a location?
« Reply #12 on: February 07, 2017, 07:31:21 PM »
You cast a spell and choose a location on the map
containing a combatant.  OK.
What should happen differently in the two cases:
1) You select 'Location'
2) You select 'Combatant'

How would you like to make that selection?
A menu choice appears for certain spells that
allow this sort of choice?  Not all spells allow
such a choice, I assume.  How would such spells
be identified by the engine?
A menu choice would be nice, perhaps when over the cell in question, instead of "Target", it would read "Target Location" and "Target Combatant". And you are correct, only a minority of spells would need this ability. I would assume that we would either add a new targeeting type so the engine would know this spell was different, or we would add a new Hook that must be in an SA attached to the spell.

Quote from: Paul
Perhaps if you gave an example of a very particular
spell and why you would want to use it in this way.
The spell in particular is 'Light' and it's reverse, 'Darkness'.
http://pandaria.rpgworlds.info/cant/rules/adnd_spells.htm#Light

Online Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2138
Re: How do I make a spell that targets a combatant or a location?
« Reply #13 on: February 07, 2017, 07:41:11 PM »
I fear you have to be very simple and specific
to get through to me.

You did not answer my question: "What would happen
differently in the two cases?"

Is it that you want to cast one of two different spells,
depending on your selection of "Location" or "Combatant"?
A 'Light' spell in one case and a 'Darkness' spell in the other?
If so, why not cast the proper spell in the first place?
I remain altogether puzzled.

Offline steve_mcdee

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 1924
Re: How do I make a spell that targets a combatant or a location?
« Reply #14 on: February 07, 2017, 09:45:28 PM »
If you choose "combatant" then the area affected by the spell would be an area around that combatant, and for so long as the spell was in force and the combatant remained alive, the area would move with the combatant. So, if the area was a 3x3 square with the combatant at the centre, the area would move so that it remained a 3x3 area with the combatant at the centre, even if the combatant moved around the battlefield.

If you choose "location" then the area affected by the spell would be an area around that location. It would not move, even if the combatant formerly occupying that target location moved away.

 

anything