DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • March 22, 2018, 12:47:18 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: [A.I. Script] Horrifying slime  (Read 3059 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Mod God
Offline Offline

Posts: 4647

Be aware of the squirrel!

View Profile WWW
« on: July 04, 2007, 06:19:24 AM »

In order to give good reason for a seperate A.I. forum, I'll start to release some of the A.I. scripts we are using on our server.

Creaturename: `QHorrifying Slime
Creatunreweapon: `@Digesting Acid
Creaturelevel: 14, 15 or 16 (it's a really hard one!)

global $badguy, $unsetme;
$unsetme = false; // In case multiple slimes are attcking, reset the var at the beginning of the script.
if (e_rand(0,2) == 0 && $badguy['creaturehealth'] > 25) {
  $slime = $badguy;
  $slime ['creaturehealth'] = ceil($slime ['creaturehealth']/2)+15;
  // Put here, so one slime stays target in case the original
  // slime was targetted.
  $unsetme = true; // Delete original slime
  output("`@The slimy blob parts!`0<br>",true);

Of course this will only and solely work with v1.1.1 and following versions. Smiley

Running for more than three years now:
Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
24 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search