void main() { // Retrieve the object/item being used object oItem = GetEventParamObject(0); // Assuming OBJECT_SELF is the PC using the item object oPC = OBJECT_SELF; string sPCName = GetName(oPC); // Define the text to be spoken and messaged // The delay in seconds before the message is sent // Command the PC to speak a string immediately AssignCommand(oPC, ActionSpeakString( " [" + sPCName + " snorts a grotty, blue powder.]")); if(GetHasFeat(FEAT_DIAMOND_BODY, oPC) || GetHasFeat(FEAT_VENOM_IMMUNITY, oPC)) { // If the PC has either feat, they are immune to the effects SendMessageToPC(oPC, "You snort the blue, grotty powder, but since you're immune to poisons and disease, it doesn't have any effect on you."); } else { // Send a delayed message to the PC DelayCommand(5.0, SendMessageToPC(oPC, " [As you snort the powder, you feel your head feeling fuzzy, funny. Words begin to slur.]")); DelayCommand(35.0, SendMessageToPC(oPC, "[Soon, you begin to feel giddy, finding humor in strange things. Your vision seems to broaden- what was once at the corner of your eye is now visible.]")); DelayCommand(60.0, AssignCommand(oPC, ActionSpeakString(" [" + sPCName + " eyes dilate slowly, features flush, but lips turning slightly blue.]"))); DelayCommand(65.0, SendMessageToPC(oPC, "[Your mind seems to expand, what was once a locked closet because a vast mansion, filled with answers. A formless, colorful blob is now your butler, guiding you through the hallways of your mind. Your speech is thoroughly slurred, barely comprehensible, but you firmly believe you're speaking the elegant truths of the universe, the vast encyclopedia of knowedge before you, waiting to be uncovered.]")); DelayCommand(215.0, SendMessageToPC(oPC, "[Your senses begin to spin. You -taste- the sounds, you -smell- the sights. Your limbs seem to be discombobulated, left seems to now be right? Wiggling your right toe moves your pinky- bizarre, assuredly, this is now a truth, a hidden symptom of the universe opening before you, waiting to be uncovered.]")); DelayCommand(400.0, SendMessageToPC(oPC, "[What was once a mansion of knowledge becomes a castle, an elegant and luxurious place your mind has become, no doubt you've become a refined scholar, to the highest degree, you can recite pi to the 50th decimal point- what a shame no one can understand you..")); DelayCommand(465.0, SendMessageToPC(oPC, "[You become increasingly disoriented, your words 'drool' out of your mouth, unintelligible nonsense.]")); DelayCommand(530.0, AssignCommand(oPC, ActionSpeakString(" " + sPCName + " violently sneezes."))); DelayCommand(700.0, SendMessageToPC(oPC, "[You find yourself on the cusp of true enlightenment, is this what divinity feels like, the omnipotent knowledge of creation, the fingers stretching outwards, all answers at the cusp of your hands? World peace, the cure to cancer, the power to sunder whole mountains to build palaces of gold...]")); DelayCommand(1200.0, SendMessageToPC(oPC, "[Just as you are about to articulate the profound truths, they slip away, hidden, forgotten, lost. You're left with a profound sense of loss, sadness- depression. The great truths of the universe are hidden from your eyes from now as you regain motor control, your words begin to find a semblence of sense again, but you know- if you try the powder again, you can find the answers again, you -KNOW-...]")); } }