dMZX Forums: : "playerdied" label -> MegaZeux Feature Requests -> Tracker

Jump to content

Report ID 810 Title : "playerdied" label
Product MegaZeux Feature Requests Status UNFILED (Severity 0 - None Assigned)
Version - Fixed in -

Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

Report ID #810: : "playerdied" label

#1 User is offline  
Kewlio 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 27-July 02
  • Gender:Male
  • Location:This Island Earth

Posted 18 July 2020 - 04:13 AM

I would like to propose the implementation of : "playerdied", in the same vein as : "playerhit" and : "playerhurt". The main use case for this would be where ammo could be reset, score could be deducted, or health could be set to a different value than the default at the beginning of a new life. Currently, checking for deaths is not particularly reliable, as all you can really do (of which I'm aware) is listen to : "playerhurt" and see if the player has one fewer life than the last time it was called, and that's assuming the player hasn't since gained a life.


Page 1 of 1  
  • Cannot start a new Issue
  • You cannot reply to this issue

Replies (1 - 2)

#2 User is offline  
ThDPro 

  • Brontosaurus-Sea-slug; Gooey and phallic
  • PipPipPipPip
  • Group: Members
  • Posts: 718
  • Joined: 03-December 06
  • Gender:Male
  • Location:Portland, OR

Posted 26 July 2020 - 04:53 PM

it's also an option to check lives in this fashion:
set "local1" "lives"
: "l"
wait 1
if "local1" = "lives" "l"
set "local1" "lives"
goto "#DIED_SUBROUTINE"
goto "l"
: "#DIED_SUBROUTINE"
[ "ive been killed"
goto "#return"

original soundtracks
Better Than Nothing - DOMINATION - Commander Keen: Heroes Lost - Welkin - A Confectioner's Recipe - random ThDPro music stuff
<Risu21121> if you're not going to make a good game, you might as well make a blatantly racist one.
<Kuddy> Testicles.
"Where are my folder?" - KKairos

#3 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,895
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 08 August 2020 - 06:35 PM

A check like that would work for most cases, but I think Kewlio was specifically concerned about the edge case where you gain a life at the same time you lose a life (that code will fail to detect it). It's a silly edge case but one I can imagine happening (rarely). I don't really have a problem with adding this as a built-in label.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository


Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

1 User(s) are reading this issue
1 Guests and 0 Anonymous Users


Powered by IP.Tracker 1.3.2 © 2025  IPS, Inc.