Question about Native GetPlayerTechResearched

Akolyt0r

New Member
Reaction score
33
JASS:
constant native GetPlayerTechResearched takes player whichPlayer, integer techid, boolean specificonly returns boolean


whats this boolean specificonly ?

anyone knows what this is for ?

EDIT:
Another Question: Somebody knows a good way of finding the Techlevel of an Research/Upgrade ? ...if not i will just register when a player techs and add that to an integer array, but i will need 6 arrays for that, which is quite ugly .....(got 6 different Techs i need to register, so that i can get the level of it later)
 

Akolyt0r

New Member
Reaction score
33
0.o you prettey much said what i already knew ...
i know what this function is supposed to do ...
but what is this boolean parameter specific only about ?
 

Trollvottel

never aging title
Reaction score
262
I didnt find anything related to specificonly, only in the blizzard.j where it was used and one function and always set to true. so just set it to true and hope theres nothing wrong with it...
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
Perhaps it's a boolean to include other levels of the upgrade?
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
I was wrong, the rawcode of upgrades aren't different at other upgrade levels.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
I don't think this is actually doing something...
Or, if it does, it's unknown.

Though, if you're interested in a random guess:

JASS:
if GetPlayerTechResearched(Player(0), 'unec', true) then
    call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, I2S(GetPlayerTechCount(Player(0), 'unec', true)))
endif


Can you see what that is doing?
+10 rep for the first one to tell us :p


As such, the random guess would be to take into account (true) or ignore (false) dependency equivalents.
"Random" from the simple fact I tested this and noticed no difference...

Well, might just as well be one of those "we planned to, but didn't" features.
 

Trollvottel

never aging title
Reaction score
262
should display the tech level of 'unec' (undead necromancer?) for player 1 to all players who are playing at the moment, if its researched.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top