Misc Scripts
NWN Script: function_includes.htm
| Author | Sticky: Post Working Scripts Here |
| mindtakerr | Posted: Thursday, 18 July 03:25AM |
| Name: Mindtakerr's Include File What it does: Just provides some functions that (I think) are useful Notes: Use of each function: GetNearestPC Usage: GetNearestPC(); Will find the nearest PC to the caller object. GetNearestNPC Usage: GetNearestNPC(); Will find the nearest NPC to the caller object. GiveGoldToParty Usage: GiveGoldToParty(int AmountOfGoldToGive); Gives the entire party the amount of gold specified. GiveXPToParty Usage: GiveXPToParty(int AmountOfExperiencePointsToGive); Gives the entire party the amount of experience points specified. TransportPartyToDestination Usage: TransportPartyToDestination(string DestinationTag, float Delay); Transports the party to the specified waypoint by its tag after a delay of Delay seconds. GetIsArmed Usage: GetIsArmed(object Creature); Determines if the Creature passed to it is armed. GetTotalLevel Usage: GetTotalLevel(object Creature); Gets the total level of all the classes of the Creature passed to it. I hope some scripters find these useful. Here's the script itself. To use it, just save the script as mindtakerr_inc. Then, at the top of the script you want to use it on, just type #include "mindtakerr_inc".
|
|
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