View previous topic :: View next topic |
Author |
Message |
Battleblaze Warrior Thread Monk
Joined: 19 Dec 2003 Posts: 782 Location: IndY OHR
|
Posted: Sun Jan 23, 2005 2:53 pm Post subject: Boss battles...going toe to toe |
|
|
Ok last question. I already have outside battle NPC killing scripts, but how whould I go about making a boss that needs to be hit a few times before death (like in smokey magoo & OHR radius)? Or an invincible NPC that couldn't be killed (say an important script triggering one)? My outside battle script is simliar to the jaimes paige one so it dosen't invove NPC life varibles... _________________ Indy OHR! and National OHR Month Contest going on now!
"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall |
|
Back to top |
|
|
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner
Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Mon Jan 24, 2005 7:59 am Post subject: |
|
|
You're going to have to completely recode that part of your script. There's no clean way to do that. _________________
|
|
Back to top |
|
|
Battleblaze Warrior Thread Monk
Joined: 19 Dec 2003 Posts: 782 Location: IndY OHR
|
Posted: Mon Jan 24, 2005 9:38 am Post subject: |
|
|
Ack! I don't wanna go back there *points back down to hell*. What about if I had a script that checks if a npc is there and if Not, makes a new one. And I could limit the times it can do this. Can I even do that? And would I start!?
*zombie arm rises from the abyss and drags battleblaze into it*
I back to the drawing board :flamedevil: (they have me now) _________________ Indy OHR! and National OHR Month Contest going on now!
"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall |
|
Back to top |
|
|
*Worthy* Critical Thinker
Joined: 11 Aug 2003 Posts: 186
|
Posted: Mon Jan 24, 2005 10:58 am Post subject: |
|
|
You can do a lot of copy-and-pasting to make a boss. Like, copy and paste the scripts that check to see if the NPC is hit. But, instead of killing the NPC, have it decrement a global variable that represents the boss's health. Then, have an "if" statement that checks to see if the boss's health is below 1. If so, then do whatever you want to happen when the boss dies.
So, you don't have to go completely back to the drawing board .
~Worthy _________________ You can do whatever you want...but prison is full of people who make bad decisions. |
|
Back to top |
|
|
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner
Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Mon Jan 24, 2005 2:02 pm Post subject: |
|
|
It's still probably more work than you were hoping to do, but it isn't that hard... unless you were hoping to make the enemy larger than one NPC. _________________
|
|
Back to top |
|
|
Battleblaze Warrior Thread Monk
Joined: 19 Dec 2003 Posts: 782 Location: IndY OHR
|
Posted: Tue Jan 25, 2005 10:50 am Post subject: |
|
|
Thanks, dosen't seem that hard. Instead of NPC death decrement a global boss varible. If the varible hits zerob bye bye boss. _________________ Indy OHR! and National OHR Month Contest going on now!
"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall |
|
Back to top |
|
|
|