Extreme 
Grandmaster Poster
  
Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20
SphereCommunity

|
RE: HELP WITH sphere.ini
(05-26-2014 04:56 AM)kn4tseb Wrote: Xun, looking at the new variable list posted by Khaos i see "DURABILITY <INT>% DURABILITY INCREASE" included, but it seems not to be hardcoded yet...
so, if i had the actual durability as a "HitPoints,MaxHitPoints" how could i code something like "extra Durability in porcent"... so if i set on the Create Trigger a value like: Durability 100
i get the actual Maxpoints + extra durability%
Example:
ON=@Create
HITPOINTS={100}
if "Durability = 50
hitpoints would be 100 + (100*50)/100) and that would be 100 hitpoints plus a 50% of its maxhitpoints
so tooltips should be showing when you click at the item, the "Extradurability" that would be 50 in this case and the maxhitpoints shall make the sum of both variables...
Puedes ayudarme con ésto?
If I did understand, the 'durability' property is the bonus in durability (hitpoints in that case)
Example:
If you have something with hitpoints 100 and durability 50, when it is created, its hitpoints will be 150.
Tooltips are showed only if you mouse over the item and you have the tooltips things enabled.
It will not show if you simple click on item. You can use a trigger to do that.
Code:
ON=@ItemClick
ACT.MESSAGE <ACT.HITS>/<ACT.MAXHITS>
STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
(This post was last modified: 05-26-2014 09:54 AM by Extreme.)
|
|
05-26-2014 06:11 AM |
|
|