Thay - Realm of the Red Wizards
Goblets of wine - Printable Version

+- Thay - Realm of the Red Wizards (https://thaypw.com)
+-- Forum: Meta (https://thaypw.com/forumdisplay.php?fid=3)
+--- Forum: The Tavern (https://thaypw.com/forumdisplay.php?fid=10)
+---- Forum: [Archived - The Tavern] (https://thaypw.com/forumdisplay.php?fid=63)
+---- Thread: Goblets of wine (/showthread.php?tid=3068)



Goblets of wine - MoreThanThree - 09-16-2015

Do they all require poison saves, or did Vezimer try to assassinate Maximilian?


RE: Goblets of wine - Bertram Anders - 09-16-2015

How many did you drink?


RE: Goblets of wine - Balanor - 09-16-2015

A save should not be a requirement for any normal goblets or wine or anything that can be drunk. Below is the code for poisoned drinks. If a drink has been poisoned, you should receive the flavor text message "You realize too late that this drink is poisoned!"

Code:
//Used Drink Item
  if ((FindSubString(sItemTag,"Drink") != -1) && (nDualItem != 1)) {
    if (nHUNGERSYSTEM = 1) {
      //Thayan 6/20/11 - Handle assassin-poisoned drinks
      int iIsAssassinPoisoned = GetLocalInt(oItem, "AppliedPoison");
      if (iIsAssassinPoisoned) {
        AssignCommand(oPC,ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK));
        DelayCommand(1.0, SendMessageToPC(oPC,TAKEADRINKOF + sName));
        DelayCommand(2.0, FloatingTextStringOnCreature("You realize too late that this drink is poisoned!", oPC, FALSE));

        if (iIsAssassinPoisoned == 100) iIsAssassinPoisoned = 0; //Handle Nightshade poison
        DelayCommand(3.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectPoison(iIsAssassinPoisoned)), oPC)); //Apply the poison effect and VFX impact
        return;
      }

      if (IntToFloat(nTCurrent) >= fTTotal) {
        //Thayan - 11/27/05 - added next 7 lines so people can drink as much alcohol as they want
        if (FindSubString(sItemTag,"ALCOHOL") != -1) {
          AssignCommand (oPC, ActionPlayAnimation (ANIMATION_FIREFORGET_DRINK));
          DelayCommand(1.0, SendMessageToPC(oPC,TAKEADRINKOF + sName));
          ApplyAlcoholEffectToPC(sItemTag, oPC);
          return;
        }
        DelayCommand(1.0, SendMessageToPC(oPC,NOTTHIRSTY));
        //Give a charge back
        if (nBottle >= 0) {
          SetItemCharges(oItem, nBottle+1);
          return;
        }
      }
      else {
        DelayCommand(1.0, SendMessageToPC(oPC,TAKEADRINKOF + sName));
        UseFoodOrDrinkItem(oPC,oItem);
      }
    }
  }



RE: Goblets of wine - MoreThanThree - 09-16-2015

Thank you. There was just a save against a poison effect, nothing else, when he tried to drink it.