HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

The difference between an upgrade and research?

08-23-2011, 05:11 AM#1
Ignitedstar
I've searched the forums and am a little surprised how this has not been brought up.

I never questioned this before, until now. When you pick events, Warcraft 3 has a difference between "upgrade" and "research". See here:

Trigger:
Untitled Trigger
Collapse Events
Unit - A unit owned by Player 1 (Red) Begins an upgrade
Unit - A unit owned by Player 1 (Red) Cancels an upgrade
Unit - A unit owned by Player 1 (Red) Finishes an upgrade
Unit - A unit owned by Player 1 (Red) Begins research
Unit - A unit owned by Player 1 (Red) Cancels research
Unit - A unit owned by Player 1 (Red) Finishes research
Conditions
Actions
And in Jass:
Collapse JASS:
function InitTrig_Untitled_Trigger takes nothing returns nothing
    local trigger t = CreateTrigger()
    call TriggerRegisterPlayerUnitEventSimple(t, Player(0), EVENT_PLAYER_UNIT_UPGRADE_START)
    call TriggerRegisterPlayerUnitEventSimple(t, Player(0), EVENT_PLAYER_UNIT_UPGRADE_CANCEL)
    call TriggerRegisterPlayerUnitEventSimple(t, Player(0), EVENT_PLAYER_UNIT_UPGRADE_FINISH)
    call TriggerRegisterPlayerUnitEventSimple(t, Player(0), EVENT_PLAYER_UNIT_RESEARCH_START)
    call TriggerRegisterPlayerUnitEventSimple(t, Player(0), EVENT_PLAYER_UNIT_RESEARCH_CANCEL)
    call TriggerRegisterPlayerUnitEventSimple(t, Player(0), EVENT_PLAYER_UNIT_RESEARCH_FINISH)
    set t = null
endfunction

Research? Upgrade? Considering how the interface seems to use the words interchangeably (Humans say Research Complete while Night Elves say Upgrade Complete), I'd assume that these two types of events are the same thing. Unless one set of them is obsolete?
08-23-2011, 05:25 AM#2
deolrin
I'm pretty sure an upgrade is, e.g, upgrading from a Great Hall to a Stronghold, or Scout Tower to Guard Tower. A research is, well, a research; Should be pretty clear. :)
08-23-2011, 06:54 PM#3
Ignitedstar
I would like to think that the triggers would be more descriptive about what it is that they're talking about. -_-