.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old May 4th, 2007, 11:23 PM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: Wish-List for Dominions 4

Spell effect predicate logic.

At present, there seems to be a single field for each spell to have a secondary effect. I'm not sure if you can chain these together ot have more than two effects for a spell or not (Unfrozen seems to indicate yes,) but you should be able to do so.

Spells should instead have *six* secondary effect fields.
Secondary-effect-each-effect - EACH effect generated by this spell also gives this spell if that effect returns TRUE, hitting/centered on that target (if applicable).
Secondary-effect-once - The spell also generates this effect. This is equivalent to the current secondary effect field.
If-TRUE-secondary-effect-each-effect - IF the predicate of the spell returns TRUE for any given target, generate this effect on that target.
If-FALSE-secondary-effect-all-targets - IF the predicate of the spell returns FALSE for any given target, generate this effect on that target.
If-TRUE-secondary-effect-once ; If-FALSE-secondary-effect-once - likewise, but

Spells with magic resistance return TRUE if the magic resistance fails, and FALSE if it succeeds, on a target-by-target basis.

Otherwise, most spells just return TRUE.

However, we'd have new effects which all they do is check predicates. There'd be an effect to check for the presence of magic paths, an effect to check the size, etc. etc. Most of them would take bitmasks in the damage value.

With this, we could make a spell which, if it targets an earth mage, tries to kill him, and if he fails his magic resistance check, summons an earth elemental in his square, for example. You could do all kinds of interesting and complicated stuff.
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:26 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.