1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. The 15th Mini-Mapping Contest came to an end. The Secrets of Warcraft 3 are soon to be revealed! Come and vote in the public poll for your favorite maps.
    Dismiss Notice
  3. The 12th incarnation of the Music Contest is LIVE! The theme is Synthwave. Knight Rider needs a song to listen to on his journey. You should definitely have some fun with this theme!
    Dismiss Notice
  4. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Tooltip Tutorial

Discussion in 'General Mapping Tutorials' started by DenZel94, Jan 22, 2008.

  1. DenZel94

    DenZel94

    Joined:
    Jun 4, 2006
    Messages:
    127
    Resources:
    5
    Maps:
    3
    Tutorials:
    2
    Resources:
    5
    This is a tutorial about tooltips and related subjects.

    So you may ask these:


    What are "TOOLTIPS"?

    Tooltips are what you see and read when you try to learn an ability, try to buy a unit or item, try to use an item or ability and information of a certain item or ability, passive or active.



    Why do we need to know anything about tooltips?

    Tooltips are the essential parts of a skill of which it will identify both you, and the seer, know what this certain ability, item or other objects do. If you cannot understand the tooltip, then you wouldn't really know what it does unless it is your second or third time to do it.




    Kinds of Tooltips

    Abilities:

    There are at least 3 types of tooltips. These are Learn tooltips, Normal tooltips, and Turn Off tooltips. All of these tooltips are found with Hero type of abilities.

    [​IMG]


    LEARN = These tooltips are seen when you try to learn an ability.

    [​IMG]

    NORMAL = These tooltips are seen when you look at the information of an already learned ability or a unit ability.

    [​IMG]

    TURN OFF = This tooltip has 2 uses which has different effects on Activate/Deactivate Abilities (e.g. Immolation) and Auto-cast abilities (e.g. Cold Arrows).

    @ Activate/Deactivate = This is quite simple. It is seen when you want to deactivate it from its effect such as immolation.

    [​IMG]

    @ Auto-cast = There are 2 parts in Turn Off, one is simply just "Turn Off" and the other is "Turn Off - Extended". Now they are seen below your "Normal - Extended" tooltip (commonly shown in light blue). What you right in Turn Off alone is when your activate its auto-cast and Turn Off - Extended is the opposite, it is when you deactivate the auto-cast.

    [​IMG]


    Units:

    There are 3 or 4 types of tooltips. These are Revive, Extended and Basic. All these tooltips are found with Hero type of unit.

    [​IMG]


    BASIC - These tooltips are seen when you try to Buy a unit (with hotkey).

    EXTENDED - These tooltips are seen when you try to buy a unit as information.

    [​IMG]

    REVIVE - This tooltip is seen when you try to revive a hero.

    [​IMG]


    Items:

    There are only 2 typre: Basic and Extended.

    [​IMG]


    Codes

    Codes are strings (information) to create a special effect to your tooltips such as colors and spacing. Very widely known codes in Warcraft III are |cffffcc00, |r, and |n


    Simple Codes

    |c-colorcode- ~ This is a code which would give the text color than just white (or plainly #FFFFFF). |cffffcc00 is usually used in hotkeys, Level emphasis (see above) and other things.
    Want more colors? Go to this link:
    http://www.virtuelle-identitaet.ch/index.php?option=com_content&task=view&id=19&Itemid=32
    PS: |cff must be the suffix and also remove the # sign to make the color code properly work.


    |r ~ This code ends the color codes or is a full stop of a color code. Typing Hel|cffffcc00l|ro will only "yellow" the l, but if you type Hel|cffffcc00lo, it will "yellow" o as well or even until the end of the tooltip (or messages in the trigger editor).


    |n ~ Rather simple. It doesn't relate anything to color but it is helpful in spacing and acts as a line breaker in the World Editor, both tooltips and Trigger Editor. See below for an example:

    [​IMG]


    Very Uncommon!
    %d = This gets the integer level of a current skill + 1, which is used in Tooltip - Learn such as "Learn |cffffcc00R|ressurection" - [|cffffcc00Level %d|r]". If, for example, the current level is 3, so it would look like this = "Learn Ressurection - [Level 4]



    Raw Codes

    Raw Codes are codes seen in raw detail rather than the real and simple name itself (such as Water Elemental = Simple).

    When you see some tooltips, you'll see gibberish somewhat like this which, when you look for that data, you don't know where to get it.

    We will use "Bash" as our skill:

    [​IMG]

    Now, go the View Menu of the Trigger Editor and check "Display Values as Raw Data" or simple Ctrl + D

    [​IMG]

    Now you'll see more gibberish. The left side is not seen in reality, but edited by yours truly.

    [​IMG]

    If you have the understood above, let us see again the "Normal - Extended" tooltip for Bash and let us identify the gibberish (let's call it Raw Codes now).

    [​IMG]


    PS: To make your custom spells work, you have to change the left (before the comma) raw code to the raw code of the custom spell.



    Now let's go to summon spells. Summon spells have different raw codes than the other skills because their raw data doesn't come from the skill, but a unit (specifically, the unit being summoned)

    Let's have "Summon Water Elemental" based.

    [​IMG]

    Now, the boxed raw codes do not exist in the skill. So you have to look for it. You will find it in the unit section. Since we are basing the skill to "Summon Water Elemental", then we get the Water Elemental unit

    [​IMG]

    As you see above, the raw code in the tooltip has the raw code of water elemental. The only problem is, how do we get mindmg1, maxdmg1 and realHP? Well, they do not exist in the unit (in my knowledge) and maxdmg1 and mindmg1 cannot be obtained or changed but these are only in the based unit. Only realHP can get the real hp of a unit, not the base.

    mindmg1 = Minimum Damage of the based unit
    maxdmg1 = Maximum Damage of the based unit
    realHP = Total Base Hit Points (HP) of a unit


    Extra: Auto-Fill

    Auto-Fill is used to automatically fill all the tooltips or values at one time depending on the desired increment (otherwise, tooltips are consecutives, 1, 2, 3 etc..)

    This is an image to where you'll find Auto-Fill, we are using an edited "Avatar" skill which has 5 levels.

    [​IMG]

    When you press the one highlighted blue, a window will open (image is below).
    "Start from level" states what number will start first
    "Replace with level" is the number or text (CASE SENSITIVE) that it will be replaced with numbers. Example is changing it to Capital A. All capital As will be replaced with the number, raw coded or not.

    [​IMG]

    After doing so, you'll have this result:

    [​IMG]


    ~

    Well, the tutorial is done! Very simple isn't it? Well, good luck at your future mapping!

    -

    This has been brought by yours truly,

    Thy FuKiN n0oB

    ------------

    Thanks to ~GaLs and Terrabull for their help.
    ORIGINAL LINK: http://www.thehelper.net/forums/showthread.php?p=658073#post658073
     

    Attached Files:

    Last edited by a moderator: Feb 15, 2008
  2. BlinkBoy

    BlinkBoy

    Joined:
    Nov 11, 2004
    Messages:
    2,097
    Resources:
    12
    Models:
    4
    Icons:
    1
    Tools:
    1
    StarCraft II Resources:
    1
    Tutorials:
    3
    JASS:
    2
    Resources:
    12
    Very good tutorial, If I would be moderator I would have aproved it after seeing half of it. I'll give you rep, hope it gets aproved. No critics or anything, except; that you could add a list containing the topics and subtopics that you are going to work with.
     
  3. Wolverabid

    Wolverabid

    Joined:
    Oct 23, 2006
    Messages:
    8,303
    Resources:
    5
    Tutorials:
    5
    Resources:
    5
    General Tutorial Submitting Rules & Guidelines - README!
    Please physically attach the images to the tutorial. Thanks.
     
  4. JetFangInferno

    JetFangInferno

    Joined:
    Jul 22, 2004
    Messages:
    902
    Resources:
    166
    Models:
    166
    Resources:
    166
    Awesome tutorial! Nice I can edit tooltips =) +rep
     
  5. Wolverabid

    Wolverabid

    Joined:
    Oct 23, 2006
    Messages:
    8,303
    Resources:
    5
    Tutorials:
    5
    Resources:
    5
    Tutorial Approved!

    Images attached.

    ~ Thread moved to General Mapping Tutorials.
     
  6. inverted

    inverted

    Joined:
    Feb 8, 2008
    Messages:
    438
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Thank you very much sir, this helped alot :) +rep
     
  7. Elven_God

    Elven_God

    Joined:
    Jun 25, 2007
    Messages:
    165
    Resources:
    2
    Maps:
    2
    Resources:
    2
    That is helpful and useful... good tutorial! +rep
     
  8. Parrothead

    Parrothead

    Joined:
    Jun 10, 2007
    Messages:
    778
    Resources:
    10
    Maps:
    8
    Tutorials:
    2
    Resources:
    10
    Very impressive tutorial!
     
  9. MindWorX

    MindWorX

    Joined:
    Aug 3, 2004
    Messages:
    690
    Resources:
    5
    Tools:
    1
    Tutorials:
    4
    Resources:
    5
    You should update the tutorial and add explanations of ",%" and ",.", both can be added in any real reference, and will either multiply by 100, or display the number with decimals.

    For example <A000,Area1,.> or <A000,DataA1,%>.
     
  10. Aluuna

    Aluuna

    Joined:
    May 1, 2008
    Messages:
    11
    Resources:
    0
    Resources:
    0
    your a lifesaver dude
     
  11. Morcrist

    Morcrist

    Joined:
    Aug 24, 2007
    Messages:
    2
    Resources:
    0
    Resources:
    0
    Another good tip is for when your ability code happens to end in a 1. Rare, but eventually it'll happen. What happens when you try to autofill this, for example...?

    Does <A001,DataA1> damage.

    Well, it'll look something like this...

    Does <A001,DataA1> damage.
    Does <A002,DataA2> damage.
    Does <A003,DataA3> damage.

    ...which we don't want.

    So to FIX that problem, do THIS for your base text:

    Does <A001,DataA1>> damage.

    And THIS for your replace:

    1>

    That way it'll only replace the 1>'s with the new numbers, giving us the proper...

    Does <A001,DataA1> damage.
    Does <A001,DataA2> damage.
    Does <A001,DataA3> damage.

    So yeah, admittedly it only happens once every blue moon when your ability code HAPPENS to end in a 1. But still!

    :)

    Take care.
     
  12. SlayerII

    SlayerII

    Joined:
    Aug 21, 2008
    Messages:
    526
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    ty morcrits now my map works:thumbs_up:
     
  13. Lestat(br)

    Lestat(br)

    Joined:
    Oct 2, 2005
    Messages:
    406
    Resources:
    7
    Models:
    7
    Resources:
    7
    Is there a code tag to make some text invisible by the players? (I know, odd question, but I need this)
     
  14. Frost DmL3

    Frost DmL3

    Joined:
    Nov 1, 2008
    Messages:
    13
    Resources:
    0
    Resources:
    0
    Thanks the author!!!
     
  15. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    Its possible to get a unit status? I mean, we can get its hp...

    Also, can we do arithmetic inside the tooltip?
     
  16. VeljkoM

    VeljkoM

    Joined:
    Jul 27, 2008
    Messages:
    2,554
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    Finally.I have waited for this.You are good person.
     
  17. thereallywhitekid

    thereallywhitekid

    Joined:
    Nov 18, 2008
    Messages:
    115
    Resources:
    0
    Resources:
    0
    An absolute perfect tutorial for my maps. Thank goodness you have made this tutorial. I now understand more about tooltips from World Editor thanks to you. +rep
     
  18. ipw3n

    ipw3n

    Joined:
    Apr 7, 2009
    Messages:
    4
    Resources:
    0
    Resources:
    0
    is there an ability editor in roc? if so where.
     
  19. MindWorX

    MindWorX

    Joined:
    Aug 3, 2004
    Messages:
    690
    Resources:
    5
    Tools:
    1
    Tutorials:
    4
    Resources:
    5
    There isn't.
     
  20. Archangel_Tidusx

    Archangel_Tidusx

    Joined:
    Feb 24, 2007
    Messages:
    1,080
    Resources:
    9
    Models:
    1
    Icons:
    4
    Maps:
    4
    Resources:
    9
    Okay, I saw how you inserted the raw values for normal abilities, but I've been trying with custom and I can't seem to get it right