1997Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Modeling spells/skills as collections of affects -->
<!--X-From-R13: E001U[GNabin.jevtug.rqh -->
<!--X-Date: Wed, 03 Sep 1997 13:49:03 +0000 -->
<!--X-Message-Id: 01IN79M00O8I8Y5HTH#nova,wright.edu -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Modeling spells/skills as collections of affects</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:S001GMU#nova,wright.edu">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg01046.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01048.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01181.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01049.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01047">Author</A>
&nbsp;|&nbsp;<A HREF="#01047">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01047">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Modeling spells/skills as collections of affects</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Modeling spells/skills as collections of affects</LI>
<LI><em>From</em>: <A HREF="mailto:S001GMU#nova,wright.edu">S001GMU#nova,wright.edu</A></LI>
<LI><em>Date</em>: Wed, 03 Sep 1997 09:47:28 -0500 (EST)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>

I've been mulling over this idea of making spells more than just a special
block of code that does whatever you want it to.  We are using a Relational
DB and it occurred to me that most (if not all) spells would only be
modifying values in the DB.  All spells could be seen as a query/modify
statement, which then has some associated cost to the caster (mana drain,
stun/physical damage as per the Shadowrun system, or whatever).  Spell
construction would consist of building the query (would definately want some
interface here so that ppl don't have to learn SQL to create spells on the 
MUD!), and calculating the cost.  Once that is done, the query and cost are 
stored in the DB under the spell name.  There would, of course, have to be a 
record somewhere of how much it costs to modify which values by however much.
Truely powerful spells could modify other ppls spells or the table of cost
values... (they're part of the DB too!).

This would work well for simple, straight forward spells, but I can see the
query getting quite complicated for spells that are dependant on a lot of
conditions (like, the moon has to be in the first quarter, it has to be
raining and there has to be a large mouse near by)...  a simple scripting
language, or possibly chaining a few simple spells together could get around
that... (IE: create a 'detect large mouse nearby' spell, which is the first
part of casting the 'summon mouse demon' spell, or something).  I need to
think about how to do more complicated spells some more.

Just some random thoughts.  :)

-Greg

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="01049" HREF="msg01049.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></strong>
<ul compact><li><em>From:</em> Caliban Tiresias Darklock &lt;caliban#darklock,com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01046.html">Re: [MUD-Dev]  New to this mailing list</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01048.html">Re: [MUD-Dev] New Topic: Butthead features</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01181.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01049.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01047"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01047"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev]  Modeling spells/skills as collections of affects</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01131" HREF="msg01131.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 06 Sep 1997, 16:25 GMT
</LI>
<LI><strong><A NAME="01170" HREF="msg01170.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Tue 09 Sep 1997, 21:06 GMT
<UL>
<LI><strong><A NAME="01194" HREF="msg01194.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Fri 12 Sep 1997, 19:12 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="01181" HREF="msg01181.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Thu 11 Sep 1997, 21:37 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="01047" HREF="msg01047.html">Modeling spells/skills as collections of affects</A></strong>, 
S001GMU <a href="mailto:S001GMU#nova,wright.edu">S001GMU#nova,wright.edu</a>, Wed 03 Sep 1997, 13:49 GMT
<UL>
<LI><strong><A NAME="01049" HREF="msg01049.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Wed 03 Sep 1997, 17:03 GMT
<UL>
<LI><strong><A NAME="01070" HREF="msg01070.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#mare,zesoi.fer.hr">silovic#mare,zesoi.fer.hr</a>, Thu 04 Sep 1997, 08:11 GMT
</LI>
<LI><strong><A NAME="01071" HREF="msg01071.html">Re: [MUD-Dev]  Modeling spells/skills as collections of affects</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#mare,zesoi.fer.hr">silovic#mare,zesoi.fer.hr</a>, Thu 04 Sep 1997, 08:13 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="01078" HREF="msg01078.html">Modeling spells/skills as collections of affects</A></strong>, 
S001GMU <a href="mailto:S001GMU#nova,wright.edu">S001GMU#nova,wright.edu</a>, Thu 04 Sep 1997, 12:50 GMT
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>