HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Math and Descriptions Fields (Object Editor)...

07-14-2004, 02:34 PM#1
QuakeII_best
Basically I would like to know what kind of commands I can use on tool tips to perform arithmetic operations and stuff like that...

For example:
Using WEU:

New Tech:
Upgrate Attack Rate:

effect1//Data - Effect 1: -> Attack Speed Bonus (%) (rats)
mod1//Data - Effect 1: (%) Increment -> 0.10
base1//Data -Effect 1: (%) Base -> 0.05
Levels: -> 3

Now I want it to say:
Ubertip// Level1 - Text - Tooltip - Extended -> Overall increase of 10%
Ubertip// Level2 - Text - Tooltip - Extended -> Overall increase of 25%
Ubertip// Level3 - Text - Tooltip - Extended -> Overall increase of 45%

Either that or :
Ubertip// Level1 - Text - Tooltip - Extended -> Increases rate by 10% of base
Ubertip// Level2 - Text - Tooltip - Extended -> Increases rate by 15% of base
Ubertip// Level3 - Text - Tooltip - Extended -> Increases rate by 20% of base

The problem is that I know I'll have to modify the mod1 and base1 values after testing, also I have a whole bunch of upgrades to do with a similar situation, but I don't want to modify the description each time I make a change nor I want to individually calculate each factor.

I know I can use <XXXX,mod1,%>% and such to display the number (say 5%), but is there a way to do math on the decription field? Or at least to show the overall effect? or the specific effect for each level? Or something that will help me reduce the amount of work?

Another thing... am I calculating it right? are those the actual bonuses that my unit will receive or am I doing it wrong?
07-14-2004, 02:56 PM#2
th15
You'll have to use the < and > tags that abilities have by default. There is no way to generate any kind of tooltip text dynamically or in this case, automatically.