RPTools.net

Discussion and Support

Skip to content

It is currently Fri May 24, 2013 4:42 pm 






Reply to topic  [ 4 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Fri Feb 18, 2011 6:14 pm
Posts: 8
 Post subject: hp bar with critical damage
PostPosted: Fri Feb 18, 2011 6:18 pm 
we are using deathwatch/rogue trader/dark heresey and i wanted to modify the hp and health bar macro located here http://lmwcs.com/rptools/wiki/HP_and_Health_Bars

to show a second bar that increments as the token takes aditional damage (the highest the critical damage goes is -10 hit points)

i keep messing it up and every time it keeps asking for aditional variables that are defined.

can any one help with this?
thanks


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Sat Sep 12, 2009 5:35 pm
Posts: 73
 Post subject: Re: hp bar with critical damage
PostPosted: Sat Feb 19, 2011 12:15 am 
Could you be a little more specific about what you want? My SR4 framework runs two bars, and I can confirm that it is possible to have one overflow into another. We run top & bottom bars, but you could also bump the thickness up and have the second bar appear behind the first.

Why don't you post the code you're having trouble with and we'll see what we can do?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5306
Location: Bay Area
 Post subject: Re: hp bar with critical damage
PostPosted: Sat Feb 19, 2011 1:11 am 
What I do is have a second bar for negative number in D&D. You can see my resource here: http://forums.rptools.net/viewtopic.php?f=8&t=13493&hilit=+arc#p150098

Basically, once the token goes below zero I turn off the stun and health bars and turn on the "empty" bar and then have the damage bar go backwards until the target is dead.

So, I would recommend just using a new bar for dying damage. You can use Wiki: setBarVisible() to turn on and off your bars.

_________________
Downloads:


Top
 Profile  
 
 Offline
Kobold
 
Joined: Fri Feb 18, 2011 6:14 pm
Posts: 8
 Post subject: Re: hp bar with critical damage
PostPosted: Wed Feb 23, 2011 1:07 pm 
thanks that helps, btw i found the dark heresey/rogue trader/death watch frame work wich solved this issue for me just after i solved the problem lol


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 4 posts ] 

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 post attachments in this forum

Search for:

Who is online

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 0 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman