Don't run either trigger on map init.
Make sure rawcodes match (And the hero actually learns the reincarnate ability).
Make sure "ReincarnationUnits" was spelled correctly.
If it's still not working, send the map over and I can debug it.
Attempting to make reincarnation revive with a % of max hp
Moderator: Cheaters
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
-
- Newcomer
- Posts: 5
- Joined: November 26th, 2007, 10:23 pm
Re: Attempting to make reincarnation revive with a % of max hp
After some more testing with rogue Tauren chieftans (I did get the trigger to work with them), I'm almost certain that the cause of the problem is that the custom heroes don't actually learn the skills. The level up ability screen in this game has 4 placeholder icons that say like "Level Up Offensive/Defensive/Misc/Ultimate Skill," instead of showing the icons of the skills you actually chose at the beginning.
Here's how the author explained it in an old forum:
"buying" the skill from the shop (I01M is the rawcode for the Reincarnation item):
And here's the process for leveling up the skill. (A008 is the placeholder icon "LevelUp Ultimate") The phrases 'Add Ability' 'Remove Abilty' and 'Unit Abilty Level Swapped,' lead me to believe that the skills aren't actually learned, but I can't really read JASS
And here's another piece that's referenced to in there^^^
I'm pretty sure that's the relevant stuff. The DisplayTexttoForce is something like "You cannot level up this ability at this time"
Sorry, I really should have looked in to this sooner. If the trigger is too much trouble to program within these paramaters, then I don't mind if you just play the old "Screw This Noob" card. Completely removing Reincarnation from the map wouldn't be too much of a bother.
Thanks for the help though!
Here's how the author explained it in an old forum:
Here's the relevant coding for getting reincarnation:Basically, for my map, I set the skills you choose to variables, and then when you level up one of the dummy abilities, I add 1 to the level of that skill for your hero (obviously you only control one hero, which is also set to a variable) it's basically a bunch of arrays and some error-checking to make sure that levelling up works correctly.
"buying" the skill from the shop (I01M is the rawcode for the Reincarnation item):
Spoiler:
Spoiler:
Spoiler:
Sorry, I really should have looked in to this sooner. If the trigger is too much trouble to program within these paramaters, then I don't mind if you just play the old "Screw This Noob" card. Completely removing Reincarnation from the map wouldn't be too much of a bother.
Thanks for the help though!
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Attempting to make reincarnation revive with a % of max hp
Code: Select all
function RegOnDeath takes nothing returns nothing
call TriggerRegisterUnitEvent(gg_trg_Reincarnate_Percent,GetLearningUnit(),EVENT_UNIT_DAMAGED)
endfunction
This line of code just needs to be executed for the trigger to work.
Just have it so that "GetLearningUnit()" becomes the unit who acquires the ability.
I just assumed it would be standard ability acquistion.