dMZX Forums: : "playerdied" label -> Archived Requests -> Tracker

Jump to content

Report ID 810 Title : "playerdied" label
Product Archived Requests Status Implemented (Severity 1 - Low)
Version - Fixed in 2.93

Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

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
  • Closed Issue This issue is locked

Replies (1 - 4)

#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,904
  • 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

#4 User is offline  
Terryn 

  • ******
  • Group: DigiStaff
  • Posts: 2,961
  • Joined: 12-October 00
  • Gender:Male

Posted 29 December 2023 - 05:11 PM

Updating status to: Implemented
Updating severity to: 1 - Low
Issue fixed in: 2.93

Implemented in regular and subroutine form as of 2.93 (GIT eff78ed3).
angelic stream - shed sanguine - ill-adapt - avis - para/lyser - renaissance - dead tangent - phosphene blur - birth breeds death - ________ - painted glass - lagniappe

<Exophase> HES STEALING MAH AIRSHIP!!!!!!11111111

#5 User is offline  
Terryn 

  • ******
  • Group: DigiStaff
  • Posts: 2,961
  • Joined: 12-October 00
  • Gender:Male

Posted 01 January 2024 - 03:05 PM

Moving to: Archived Requests


Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

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


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