Author Topic: Pool of Radiance Resources  (Read 2098 times)

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2124
Re: Pool of Radiance Resources
« Reply #120 on: February 28, 2017, 04:45:57 PM »
Quote
Let's say I don't want Birth Control Pills available if Religious Gnomes are in the party.

Using my method: (no chaining needed)
item:  "Birth Control Pills"
Special Ability: "Not for Religious Gnomes"
Script:  "SubstituteItems"

IF ( Religious Gnomes in party )
{
....Return "@Qur'an";
}
ELSE
{
....Return "@" +  "itemname"
}

item: "Arrows"
Special Ability: "DoubleAtNight"
Script:
p = "@" + itemname
If ( nighttime ) {p = p +p;};
return p;

If (paladins)
return ""
ELSE
return "@swords"
« Last Edit: February 28, 2017, 04:48:35 PM by Paul R. Stevens »

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9484
Re: Pool of Radiance Resources
« Reply #121 on: February 28, 2017, 05:32:36 PM »
Quote
Let's say I don't want Birth Control Pills available if Religious Gnomes are in the party.

Using my method: (no chaining needed)
item:  "Birth Control Pills"
Special Ability: "Not for Religious Gnomes"
Script:  "SubstituteItems"

IF ( Religious Gnomes in party )
{
....Return "@Qur'an";
}
ELSE
{
....Return "@" +  "itemname"
}

item: "Arrows"
Special Ability: "DoubleAtNight"
Script:
p = "@" + itemname
If ( nighttime ) {p = p +p;};
return p;

If (paladins)
return ""
ELSE
return "@swords"

I'm sold. Your method can do everything I can think of off the top of my head.

What about for money? I can think of several immediate uses for the items Hook, but I would like more to be able to substitute money (including gems and jewelry). I realize this is not the same thing, beause there is no money item to attach a Special Ability to.. Perhaps there are already functions for this? There are some of the money functions which have never seen documentation on and couldn't figure out through my rudimentary testing.
The functions that I don't know anything about are:
$COINNAME( String )
$COINRATE( String )
$COINCOUNT( String, String ) --> this one is not in your help docs at all


 

anything