Jump to content
  • entries
    97
  • comments
    172
  • views
    59517

NPC scripts

Sign in to follow this  
Deranged

452 views

No time for a real entry, here's an npc script in its current stage.




10
13
12
13

"droplist.itl" />
"model.mesh" material="material/material/mat" gender="male" canWearArmor="true">

"head" items="armor_head_leather_cap, armor_head_none" />
"chest" items="armor_chest_studded_leather, armor_chest_heavy_leather" />
"legs" items="armor_legs_plated_leather_shin_guards" />
"feet" items="armor_feet_hard_leather_boots" />
"arms" items="armor_arms_leather_arms" />
"hands" items="armor_hands_gurlichts_studded_manglers" />
"leftring" items="trinket_ring_none" />
"rightring" items="trinket_ring_none" />
"neck" items="trinket_neck_none" />
"projectileweapon" items="weapon_projectile_heavy_war_crossbow" />
"meleeweapon" items="weapon_melee_axe_of_the_magic_circlet" />
"shield" items="armor_shield_none" />


Gurlicht the Mangler
Western Independent Briggade
true
Faction Dependant


"onDeath" file="gurlichtDeath.ogg" />





and here's a screenshot of right now, npc's not implemented yet:
Sign in to follow this  


3 Comments


Recommended Comments

I like the way that you have your npc scripts set up. Have you ever considered a hierarchal design for your npcs? Like using your example you would have another script that controls the armor another for the stats so that you could repeat that information for all npcs that are just like it?

Although thinking about it now, it might be too much trouble. [smile]

Share this comment


Link to comment
Quote:
Original post by Mayan Obsidian
Although thinking about it now, it might be too much trouble. [smile]


It might just be =P

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!