function Initialize(){ showcharacter; setcharprop #n,Baddy'sName; setcharprop #2,Baddy'sShield; setcharprop #1,Baddy'sSword; setcharprop #3,Baddy'sHead; setcharprop #C0,SkinColor; setcharprop #C1,CoatColor; setcharprop #C2,SleeveColor; setcharprop #C3,ShoeColor; setcharprop #C4,BeltColor; hearts=LifeofBaddy; this.speed=MovementSpeed; swordpower=StrengthofBaddy; this.attackdist= DistancetoAttack; timeout=TimetillStart } |
The stuff in Red has to be filled in with
correct filenames or colors that the graal engine can recognize. Everything in Blue needs to be a numerical values. As I explain the other functions you ought to get a better idea as to what to use for the value of these variables. this.attackdist might be confusing, basically if it were set to 3, then the NPC will do its scripted attack when it is 3 tiles away from its designated target. |