Re: Just thought I'd write this out here for commentary
- From: R. Dan Henry <danhenry@xxxxxxxxxxx>
- Date: Sat, 29 Mar 2008 21:43:27 -0700
On Sun, 30 Mar 2008 00:11:42 GMT, Narf the Mouse <largemouse@xxxxxxxxx>
wrote:
I'm going with a Prefix/Verb/Suffix system for the magic system for my
roguelike. The Prefix is Where, the Verb is Affect and Suffix is What.
Now, to code this, I'm going to have to use flags and generic methods.
'Where' generally being a shape, an enum with the names of various
shapes would be usefull. Call this 'ShapeEnum'. Let's go with 'Bolt'.
Ok, we've got a shape. But we need parameters for What is Affected. A
spell should be able to affect three different things; characters, items
and terrain. Different combinations of Verb and Suffix will affect
different things, so each needs to set relevent flags. Except...What if
you want to shoot a Bolt of Boost Lightning at a trap in order to boost
its damage?
Seems to me that this is part of the Where: You would need a Trap-effect
of Boost Lightning, a Bolt would simply pass through looking for a
non-terrain target. And a Trap-effect of Create Lightning would produce
an electrical trap in the first place.
--
R. Dan Henry = danhenry@xxxxxxxxxxx
If you wish to put anything I post on your website,
please be polite enough to ask first.
.
- Follow-Ups:
- Re: Just thought I'd write this out here for commentary
- From: Narf the Mouse
- Re: Just thought I'd write this out here for commentary
- References:
- Just thought I'd write this out here for commentary
- From: Narf the Mouse
- Just thought I'd write this out here for commentary
- Prev by Date: Re: Vaporware: metaduel simulator
- Next by Date: Re: Vaporware: metaduel simulator
- Previous by thread: Just thought I'd write this out here for commentary
- Next by thread: Re: Just thought I'd write this out here for commentary
- Index(es):
Relevant Pages
|