DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • November 17, 2018, 05:24:12 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: [A.I. Script] Horrifying slime  (Read 3222 times)
0 Members and 1 Guest are viewing this topic.
XChrisX
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!)

Code:
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;
  battle_spawn($slime);
  $slime['istarget']=false;
  // Put here, so one slime stays target in case the original
  // slime was targetted.
  battle_spawn($slime);
  $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
Logged

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


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

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