Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Nethran
Novice


Joined: 25 Apr 2011
Posts: 32

PostPosted: Mon May 30, 2011 5:49 pm   

(Another!)Distinguishing Between Melee and Spells
 
The problem lies with:
Code:

#TRIGGER {You are * on the * by a * causing * damage.} {#ADD hitstaken 1}
#TRIGGER {*is*on the %1 with your %2 causing %3 damage.} {#ADD weaphits 1;#IF (%1=arm) {#ADD armhit 1};#IF (%1=leg) {#ADD leghit 1};#IF (%1=tail) {#ADD tailhit 1};#IF (%1=head) {#ADD headhit 1};#IF (%1=wing) {#ADD winghit 1};#IF (%1=torso) {#ADD torsohit 1};#IF (%2=bash) {#ADD bashes 1};#IF (%2=slash) {#ADD slashes 1};#IF (%2=pierce) {#ADD pierces 1};#IF (%2 != bash AND %2 != slash AND %2 != pierce) {#ADD exotics 1};#IF (%3=lethal) {#ADD perskills 1}}


If a player or mob has the spell 'fireshield' on them, the following will be displayed when you hit them with your melee attack:
Code:

A goblin slayer's fireshield erupts at your strike! You are burned on the torso by a goblin slayer's flames causing mild damage.


Alternately, if you have fireshield and are hit with a melee attack, it will set off the trigger saying that you landed an attack.

I would use the ^ character, but occassionally, if there's enough spam on screen, actual melee hits will display on the same line as your hp/sp/st.

Then spells:
Code:

You have completed your casting.
A palace functionary seems to age before your eyes as your deadly touch drains raw life force from his body.
A palace functionary is zapped on the torso with your magic causing unbearable damage.


Code:

You have completed your casting.
A pinch of sulfur flares brightly and vanishes!
A streak of light shooting from your fingertips turns into one roaring ball of flame!
A palace servant is burned on the leg with your flames causing lethal damage.


Same issue, but different strings involved for each, obviously.

All of these are showing up, to my script, as 'exotic', though there are some Psionic spells that do slash/pierce/bash.

I'm not entirely hopeful that there's a solution to this issue, but it would be awesome.

Sorry for using the forums so much. I don't really have anyone else I can ask these things to.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Mon May 30, 2011 10:24 pm   
 
Seems the problem would be in your status prompt then (hp/sp/st)... i would try to #GAG it
_________________
Discord: Shalimarwildcat
Reply with quote
Nethran
Novice


Joined: 25 Apr 2011
Posts: 32

PostPosted: Mon May 30, 2011 10:59 pm   
 
If I gagmy prompt, I can't see my stats. D: Also, it's only an issue with fireshield/lightning shroud. It's less of an issue with the spells, as the damage strings are displayed the same way as if they were melee.

Like said though, I don't have a lot of hope that this is fixable.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net