Okay. I think I've refamiliarized myself with the CYS scripting language. What you are wanting to do is to address the player's cause of death on a certain page and then lead to a universal death page, if I understand correctly. The best (and only, as far as I know) way to do that is by using the global page script and the global link script. I assume that you already have a health variable and a variable to record damage done by an enemy (let's call these HEALTH and ENDAMDONE, respectively). We need to create another two variables, DEAD and LASTINJ, which will represent whether the character is dead and what the nature of the last injury was. LASTINJ is set when your character takes damage and corresponds to the kind of damage the character took (In this instance, a value of 1 means the last blow was dealt by a sword, while 2 indicates it was dealt by an arrow). I'll let you figure out how to set LASTINJ. The rest, however, is roughly as follows.
In your global link script, input:
IF %DEAD THEN
$DEST := @P37
IF %ENDAMDONE >= %HEALTH THEN %DEAD := 1
In your global page script, input:
IF %DEAD = 0 THEN
IF %LASTINJ = 1 THEN $PAGETEXT := $PAGETEXT = "His sword finally pierces your ribcage. You cough out a little blood before you collapse."
IF %DEAD = 0 THEN
IF %LASTINJ = 2 THEN $PAGETEXT := $PAGETEXT = "A Lucky arrow strikes you between the eyes. You barely manage a look of shock before you expire."
Edit: I know of one or two problems that exist with this approach, but they are mainly...cosmetic. Functionally, this should be exactly what you are looking for. Let me know how it works. If you need help, I would be willing to co-author, just long enough to get everything working for you.