Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-25-2002, 10:36 AM
Tin Man Tin Man is offline
GFX Ninja
Tin Man's Avatar
Join Date: Aug 2001
Location: Near a PC
Posts: 1,277
Tin Man is on a distinguished road
Send a message via ICQ to Tin Man Send a message via AIM to Tin Man Send a message via Yahoo to Tin Man
Scripting problems

Im trying to do some script for a NPC that reduces all damage done to in a pattern, first it does 0.5 then nothing then 0.5, so on and so forth my problem is that it only works for the first part of the script then stops. I was wondering if some one could help my and fix my script so that it would follow that pattern. Id really apreciate it.

i havent scipted in a while so that would explane why its so long.

also when the NPC's activated it automaticly sets the players hearts to 3.

if (test && playerhearts > 3 || playerhearts == 3 && this.l33t = 0) { playerhearts = 3; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 1) { playerhearts = 2.5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 2) { playerhearts = 2.5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 3) { playerhearts = 2; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 4) { playerhearts = 2; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 5) { playerhearts = 1.5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 6) { playerhearts = 1.5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 7) { playerhearts = 1; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 8) { playerhearts = 1; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 9) { playerhearts = .5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 10) { playerhearts = .5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 11) { playerhearts = 0; this.l33t = this.l33t + 1;
}
if (test && this.l33t = 12) {unset test; this.l33t = 0;}
__________________


Check it out
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.