Skip to content
#237
Auto-translated
I have another question about h4util. There's a function called f_HasArtifact(Owner, Artifact). It works perfectly fine, until you pass 166 or 124 as the second argument (the IDs for a scroll and a parchment, respectively). This makes sense, because in these cases, to uniquely identify the item, you also need the spell ID contained within the scroll or parchment. Other functions (f_GiveArtifact and f_RemArtifact) accept an additional argument in such cases. But f_HasArtifact doesn't accept it and throws an error saying that there are too many arguments. However, if you try to create the same script in the map editor, it works and functions as expected. And if you then export it from the map using h4util, you'll see the f_HasArtifact function with three arguments. It's interesting that you can't import the same script back into the map; it will give an error saying "too many arguments." Is there any way to work around this bug? Or maybe the source code for h4util can be found somewhere? I could then fix it myself.

Statistics

Welcome our newest member: dodoD0D0