GetTriggerUnit-
DogEntrepreneur
- Reaction score
- 129
Using the Object editor data in tooltips!
by Blitz
Information:
-This contain tips about the object editor data, and how to use them in the tooptips.-It's very easy to you, and make you save time when you make your spells' tooltips.
-It's under [Demo Map[ because it's not big enough to be a tutorial.
Starting up[/CENTER
]
First, open the object editor. (That's the hard part).
Then press ctrl+D and you'll all the raw values of each line pop-up.
Then read this part: (Part 1)
Here's an example of my custom spell.
What makes the text switch to next line is this code: |n
Look again to the tooltips quote, and you'll see it.
Now read again but this part: (Part 2)
Adding data to tooltips is quite easy. You can add any integer or real value, without having to type it. This is what can make you save time.
Now get back into your object editor and look your spell. You'll see a number, for exemple 'A000' followed by another number(useless for this)
To add add data start by <> and enter the first number in it. <A000>
Then put a comma <A000,> and search on the spell, the line you want to display. I want mana, it's Cost1. Add your data (Cost1) after the comma. <A000,Cost1>. This will display the mana cost at level 1.
Proof. tooltip:
You can use %d to have the level of the ability when your learn.
Does this mean we can display the value of another spell?
Yes.
Your done . Hope this simplify your spell making!
Threads v1.00
Test map
First, open the object editor. (That's the hard part).
Then press ctrl+D and you'll all the raw values of each line pop-up.
Then read this part: (Part 1)
Here's an example of my custom spell.
It's pretty hard to read. But ingame, it gives a good result:The Illusionist stop the time while he creates a clone of all the units in the target area. The clones do 50% damage and takes 200% damage.|n|n|cffffcc00level 1|r - Clones last 5 seconds.|n|cffffcc00level 2|r - Clones last 10 seconds. |n|cffffcc00level 3|r - Clones last 15 seconds.
What makes the text switch to next line is this code: |n
Look again to the tooltips quote, and you'll see it.
Now read again but this part: (Part 2)
Adding data to tooltips is quite easy. You can add any integer or real value, without having to type it. This is what can make you save time.
Now get back into your object editor and look your spell. You'll see a number, for exemple 'A000' followed by another number(useless for this)
To add add data start by <> and enter the first number in it. <A000>
Then put a comma <A000,> and search on the spell, the line you want to display. I want mana, it's Cost1. Add your data (Cost1) after the comma. <A000,Cost1>. This will display the mana cost at level 1.
Proof. tooltip:
Screenshot:<A000,Cost1>
You can use %d to have the level of the ability when your learn.
Does this mean we can display the value of another spell?
Yes.
Your done . Hope this simplify your spell making!
Threads v1.00
Test map