Re: Spell cost

From: Jaco van Iterson (J.C.vanIterson@ET.TUDelft.NL)
Date: 04/04/95


On Mon, 3 Apr 1995, Brett Helgeson wrote:

> 	
> 	Here is some psuedo-code I am having some problems with:
> 	
> I am running 2.20, and in spell_parser.c you get the following for using mana:
> 
> #define USE_MANA(ch, sn)
>  MAX(spell_info[sn].min_usesmana, SPELL_LEVEL(ch,sn))
> 	
> Now since the original set up is to give all spell using characters 100 mana, 
> I assume that the above takes that into consideration for determining how
> much each spell will cost (not including the obvious min_use and max_use mana
> in the SPELLO's)
> 	
> I am attempting to make each spell level (1,2,3 etc) cost that much mana - 
> really spell points.
> 	
> So I tried this:
> MAX(spell_info[sn]min_usesmana = SPELL_LEVEL(ch,sn))
> 
> It didn't like it. Then I tried this:
> MAX(spell_info[sn]SPELL_LEVEL(ch,sn))
> 
> And that didn't work. If anyone out there could shed some light, I would be
> much obliged. Even a simple "your in the wrong spot" would be helpful.
> 

It doesn't work because the syntax is all wrong.
I guess you need:

#define USE_MANA(ch, sn)	SPELL_LEVEL(ch, sn)



This archive was generated by hypermail 2b30 : 12/07/00 PST