- Joined
- Feb 1, 2019
- Messages
- 400
Hello, I am trying to make a spell so it require 2 upgrades to be unlocked, I thought this would be fairly easy, but my issue is: only the first upgrade selected it taken into account for unlocking the spell, meaning that if the first upgrade is researched, it unlock the spell and ignore the second upgrade requirement.
Second upgrade actually makes no diff, the requirement string is still displayed on the locked ability when I research it.
My goal was to display those require lines.
So in this case, the "Medallion Of Courage" upgrade doesn't unlock anything, text still being displayed after research. If only research "Require level 9" (it's a research, I named it like this) is completed, the spell is unlocked.
Just want to confirm that it's possible to have 2 upgrade requirement for a spell.
Btw I used the "constant native SetPlayerTechResearched takes player whichPlayer, integer techid, integer setToLevel returns nothing" (I don't remember BB code for jass and where to look for it) to make my tests, setting the level 1, dunno if it's responsible for my issue, just adding this detail.
I apologize if my post isn't clear, thank you.
Second upgrade actually makes no diff, the requirement string is still displayed on the locked ability when I research it.

My goal was to display those require lines.

So in this case, the "Medallion Of Courage" upgrade doesn't unlock anything, text still being displayed after research. If only research "Require level 9" (it's a research, I named it like this) is completed, the spell is unlocked.
Just want to confirm that it's possible to have 2 upgrade requirement for a spell.
Btw I used the "constant native SetPlayerTechResearched takes player whichPlayer, integer techid, integer setToLevel returns nothing" (I don't remember BB code for jass and where to look for it) to make my tests, setting the level 1, dunno if it's responsible for my issue, just adding this detail.
I apologize if my post isn't clear, thank you.