• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Stupid Question

Status
Not open for further replies.
Level 22
Joined
Jan 10, 2005
Messages
3,426
I cant find an action like 'Finish upgrade' for player or sumthing. I found an action to order a building to research something, but it must be instantly ready. There were also functions to speed up constructions and building upgrades, but no normal upgrades for units or sumthing
 
Level 9
Joined
Sep 8, 2004
Messages
633
I can remember seeing a trigger that was something like {player - set research progress to (100%)), where one can change the percentage.
But then i am using WEU, maybe it's an extra included in that editor.

Check it out though. :)

Edit: I checked the editor, and those were only available for Unit - upgrade, and unit - construct. Not for research. Maybe something like this helps though
Code:
Temptrigger
    Events
        Unit - A unit Begins research
    Conditions
    Actions
        Player - Set the current research level of (Researched tech-type) to ((Current research level of (Researched tech-type) for (Owner of (Triggering unit))) + 1) for Player 1 (Red)

If it doesn't, you can always try setting the upgrade in variables, and when a unit starts the upgrade, if the upgrade is equal to the type you want, set the variable +1, and make the upgrade for that player equal to the variable.

Goodluck!

(P.s. there's no such thing as stupid questions :D ) ((or at least... hardly any things))
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
I can remember seeing a trigger that was something like {player - set research progress to (100%)), where one can change the percentage.
But then i am using WEU, maybe it's an extra included in that editor.

Im using WEU to, but: 'those were only available for Unit - upgrade, and unit - construct. Not for research' 8)

Code:
Code:
Temptrigger
    Events
        Unit - A unit Begins research
    Conditions
    Actions
        Player - Set the current research level of (Researched tech-type) to ((Current research level of (Researched tech-type) for (Owner of (Triggering unit))) + 1) for Player 1 (Red)

Thnx

(P.s. there's no such thing as stupid questions icon_biggrin.gif )

Except the famous 'how to get lvl 10+ heroes' question
 
Status
Not open for further replies.
Top