Table of Contents
X. Purpose
1. Version Information
2. Starting Off
3. Basic Idea of a Baddy
4. Building the NPC
4.1 Beginning Portion
4.2 Simple Chase Script
4.2.1 Adding a Speed Variable
4.3 Moving Towards the Player
4.4 Adding Onwall Detection
4.5 Hurting the Player
4.5.1 Adding to Hurting Script
4.5.2 Adding a Power Variable
4.6 Setting Vars to Hurt Baddy
4.6.1 Hurting Baddy Script
4.6.2 Resetting "hurtdx","hurtdy"
4.7 Script So Far
5. Animations
5.1 Facing the Player
5.2 Using the Walking Sprites
5.3 Updated Chasing Script
5.4 Adding the Hurt Sprite
5.4.1 Showing Sprites Correctly
5.4.2 Fixing "hurtdx","hurtdy"
5.5 Killing the Baddy
5.5.1 Kill the Hurt Script
5.6 Looking Dead
5.7 Current Baddy Script
6. Improving Upon the Basics
6.1 Bouncing
6.2 Laying Items When Killed
6.3 "Spinning Death"
6.4 Completed Baddy Script
7. Scripting a Swordsman
7.1 SM's First Part
7.2 SM's Attacking Script
7.2.1 Values for "this.attackdist"
7.3 Fixing the SM's "Hit Glitch"
7.4 Basic Swordsman
8. Scripting an Archer
8.1 Archer's Beginning Script
8.2 Archer's Attacking Script
8.3 Archer's Hit Detection
8.4 Completed Basic Archer
9. Scripting a Horseman
9.1 Horseman's Beginning Script
9.2 Horseman's Walking Script
9.3 Completed Basic Horseman
10. A Horseman with a Sword
10.1 SHM's Beginning Script
10.2 SHM's Attack Detection
10.2.1 Facing Player for Attack
10.3 SHM's Hit Detection
10.4 Basic Sword Horseman
11. Archer Horseman
11.1 AHM's Attack Detection
11.2 AHM's Hit Detection
11.3 Archer Horseman
12. Catching and Throwing
12.1 Catching Script
12.2 Hurting the Catcher
12.3 Walking and Throwing
12.4 Catcher's Beginning Script
12.5 Catcher/Thrower
13. Scripting a Basic Thief
13.1 Beginning Portion
13.2 Stealing Script
13.3 Dying Script
13.4 Completed Basic Thief
14. Scripting a Different Thief
14.1 New Stealing Script
14.2 New Walking Script
14.3 Taking / Resetting Vars
14.4 Beginning Part
14.5 Completed Zelda-ish Thief
15. Credit / Legal Stuff
16. Special Thanks
17. Things to Come
18. Downloads