Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] meta spells

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Jaka Kranjc <lynx AT mages.ath.cx>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] meta spells
  • Date: Sun, 17 Dec 2006 09:30:31 +0100

The best I came up with is:

optional_depends foo "" "" "for reason1" &&
if is_depends_enabled $SPELL foo; then
optional_depends bar "" "" "for reason1 (you need this one too)"
fi

So if the user chose not to use the first one, everything is the same and if
he does, the query tells him everything. Unless worded *really* badly.

--
We cannot command nature except by obeying her. --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org

Attachment: pgpkIopno0ulV.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page