DMH-Online

Dungeon Masters Helper · Est. 2005

Misc Scripts

NWN Script: puking.htm

Author Sticky: Post Working Scripts Here
DM_Rothgar Posted: Tuesday, 23 July 03:00AM
Puke script available.

By: DM_Rothgar
My first unassisted script

NWScript:
// PUKE IT UP!!!!
// You didn't ask for it...but you got it anyway.
// This is my first script from scratch.
// Created by DM_Rothgar
// Its a PUKING script!!!

void main()
{
    effect ePuke = EffectVisualEffect(VFX_COM_CHUNK_YELLOW_SMALL);
    object oPuker= GetNearestObjectByTag("YOUR_PUKERS_TAG_GOES_HERE");
    string sPukeTalk = "BBBLLLLAAAARRRRGGGGHHHHH!!!!";
    string sPukeApology = "Sho Shorry about your shooesh...I thinksh I have hash too much to drinksh!";
    ClearAllActions();
    AssignCommand(OBJECT_SELF, ActionPlayAnimation(ANIMATION_LOOPING_MEDITATE));
    AssignCommand(OBJECT_SELF, ActionSpeakString(sPukeTalk));
    DelayCommand(2.0,ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ePuke, OBJECT_SELF, 1.0));
    DelayCommand(5.0, ActionSpeakString(sPukeApology));
}



Edited:
I put this on the Actions Taken script of the Conversation of the NPC. The conversation Root is

Uh Oh! You hash besht move bacsh a bit. And the action is applied to that.


_________________
Rothgar
Wizard

⌂ All Scripts ← PreviousNext → 👁 Category List

All Misc Scripts

📄 arena 📄 cast_bless_on_PC 📄 change_music 📄 chess_game 📄 climbing 📄 climbing_002 📄 common_includes_002 📄 cone_aoe 📄 cron 📄 cross_country_travel 📄 daoc_style_graves 📄 determine_time 📄 effects 📄 escort 📄 ez_respawn 📄 faction 📄 floating_text 📄 function_includes 📄 gambling 📄 include_sounds 📄 include_time_date 📄 jail 📄 jail_system 📄 journal_entry 📄 logbook 📄 manage_action_queue 📄 mmorpg_vault 📄 mod_intro 📄 mod_intro_002 📄 mod_intro_003 📄 mod_intro_005 📄 pers_world_database 📄 pers_world_database_002 📄 piller_of_fire 📄 plot_item 📄 portal_system 📄 portal_system_002 📄 puking 📄 quest_escort 📄 rep_per 📄 reward_rp 📄 rotation 📄 save_pc_location_002 📄 save_pc_location_003 📄 skill_checks 📄 skill_checks_002 📄 slot_machine 📄 story 📄 swimming 📄 take20_bypass 📄 vis_waypoint 📄 working_temple 📄 working_temple_002 📄 xp_gold_loss 📄 xp_gold_loss_002 📄 xp_loss_action