• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Reforged Broke Triggers "Local Handle System (made by KaTTaNa)"

Status
Not open for further replies.
Level 2
Joined
Aug 24, 2021
Messages
8
Hi All,

I hope you can assist me with this, i put a lot of hours many years ago into building this map and someone from forums such as this helped me build the tricky-ier triggers so i dont know how to fix them now they are broken.

Its a simple map using a ladder map with my own unit values (imports fine into reforge) but the triggers are coming up with a number of error codes but i have narrowed it down to the dota-like recipe system that was added with the Kattana custom script and the recipe system triggers. if i delete the trigger folder and the custom script, i can save and load the map.

If anyone can help me fix the dota-like recipe system it would be very much appreciated

It keeps returning this for a number of lines:
"Cannot convert returned value from handle to integer"

and then highlights a long list of errors such as:

function H2I takes handle h returns integer
return h
return 0
endfunction

I have attached the map itself if anyone can have a closer look.

thank you for any assistance! i really want to play this map again with my friends
 
Last edited:
function H2I takes handle h returns integer
return h
return 0
endfunction
Thats the return bug used before Warcraft 3 V1.24, has nothing to do with reforged.

But it should be easy to fix. The function above has to be changed into this:
JASS:
function H2I takes handle h returns integer
    return GetHandleId(h)
endfunction
 
Level 2
Joined
Aug 24, 2021
Messages
8
Wow thanks!!!
Fixed it.
I was also going through all the help guides on this website and was halfway doing the trigger only version haha.
Thanks!
 
Status
Not open for further replies.
Top