My Dr. Jekyll and Mr. Hyde Cartridge isn't Working!

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Juan "JacKThERiPPeR
Posts: 931
Joined: Sun Jun 03, 2007 7:25 am
Location: SPAIN
Contact:

My Dr. Jekyll and Mr. Hyde Cartridge isn't Working!

Post by Juan "JacKThERiPPeR »

Ok, I have a Dr. Jekyll and Mr. Hyde NES cartridge as a boss, so it's a fucking wall that when shot, it removes health from this kind of wall-monster.

The thing is that this health isn't lowering for some reason, and the health bar stays the same.

The code:
Spoiler:
So I don't know what to do.
Nightmare Doom
Posts: 487
Joined: Tue Oct 12, 2004 7:21 pm

Post by Nightmare Doom »

http://www.youtube.com/watch?v=6M_4Yqk65f8

Are you making a Angry Videogame Nerd doom?
User avatar
BouncyTEM
Posts: 3822
Joined: Sun Aug 24, 2003 5:42 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: 2280 Lol Street: The Calamitous Carnival (formerly Senators Prison)

Post by BouncyTEM »

I would assume so, considering on the Screwattack forums he announced that he was making a project called "Angry Videogame Nerd doom" :P
User avatar
Juan "JacKThERiPPeR
Posts: 931
Joined: Sun Jun 03, 2007 7:25 am
Location: SPAIN
Contact:

Post by Juan "JacKThERiPPeR »

Nightmare Doom wrote:http://www.youtube.com/watch?v=6M_4Yqk65f8

Are you making a Angry Videogame Nerd doom?
Yes I do.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Script 9 is the culprit. Reverse the ordering of your if statements and it should work.

The problem is that if the boss' health is less than (for example) 50, then it is also less than 100. Since the check for <100 comes first, the <50 check is never reached.

Here is the fixed code:

Code: Select all

script 9 (void) { 
   if (BossHealth == 0) { 
      //TODO: End boss 
   } else { 
      if (BossHealth < 25) { 
         SetFont("BOSSB1"); 
      } else if (BossHealth < 50) { 
         SetFont("BOSSB2"); 
      } else if (BossHealth < 75) { 
         SetFont("BOSSB3"); 
      } else if (BossHealth < 100) { 
         SetFont("BOSSB4"); 
      } 
      hudmessage(s:"a"; HUDMSG_PLAIN, 999, CR_UNTRANSLATED, 0.1, 1.1, 1); 
      Delay(1); 
      Restart; 
   } 
}
That should fix the bar itself. If the actual health value isn't lowering, then it's probably something to do with how you're triggering script 11.

BTW, I noticed you're not setting it to any font if the boss' health is exactly 100. This would have the effect of printing the letter "A" on the screen. I'm assuming that's not what was intended?
Last edited by HotWax on Mon Jul 02, 2007 9:26 am, edited 1 time in total.
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

If you don't make a weapon that arcs over players i'm suing you. Also it's a shame the AVGN himself won't be able to play this because he uses a mac
User avatar
BouncyTEM
Posts: 3822
Joined: Sun Aug 24, 2003 5:42 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: 2280 Lol Street: The Calamitous Carnival (formerly Senators Prison)

Post by BouncyTEM »

Don't forget three rocket launchers that shoot different looking rockets and use different ammo types, but the only difference between the three rockets being appearance and ammo amount!

(as in, all three rockets do the same damage, but one allows you to cary 80, one 40, one 20, or one 40, one 20, one 10, etc.)

:P
User avatar
Juan "JacKThERiPPeR
Posts: 931
Joined: Sun Jun 03, 2007 7:25 am
Location: SPAIN
Contact:

Post by Juan "JacKThERiPPeR »

Now it does lower, but it doesn't spawn the WallyBear actors.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

[quote="Juan "JacKThERiPPeR"]Now it does lower, but it doesn't spawn the WallyBear actors.[/quote]
Strange. The ACS here looks correct.

Make sure you have mapspots with the appropriate TIDs, that there's room for the actor's to spawn, etc. Also make sure nothing is unexpectedly changing the BossHealth variable.
Lamneth
Posts: 187
Joined: Thu Apr 26, 2007 12:00 am
Location: Dark Falz's chamber

Post by Lamneth »

Cutmanmike wrote:If you don't make a weapon that arcs over players i'm suing you.
Don't forget a weapon that does nothing at all. ;P
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Post by Kinsie »

Bouncy wrote:I would assume so, considering on the Screwattack forums he announced that he was making a project called "Angry Videogame Nerd doom" :P
Well if we're making wads about "vlogs" (ugh) I call dibs on 400-Pound Hambeast Doom. It will have the greatest nose-vomit particle effects ever produced by decorate, and lard-jiggle sprite animation that would bring Scuba Steve to tears at it's quality.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Bouncy wrote:I would assume so, considering on the Screwattack forums he announced that he was making a project called "Angry Videogame Nerd doom" :P
Linkage, please. I've done a quick search on the Screwattack forums and found nothing.
User avatar
Juan "JacKThERiPPeR
Posts: 931
Joined: Sun Jun 03, 2007 7:25 am
Location: SPAIN
Contact:

Post by Juan "JacKThERiPPeR »

I think the new thread is called The Angry Videogame Nerd TC for ZDoom or something. Since the server fall-down, the old thread has been lost.
User avatar
BouncyTEM
Posts: 3822
Joined: Sun Aug 24, 2003 5:42 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: 2280 Lol Street: The Calamitous Carnival (formerly Senators Prison)

Post by BouncyTEM »

Locked

Return to “Editing (Archive)”