• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Cannot use some functions from blizzard.j file

Level 2
Joined
Feb 9, 2021
Messages
5
I'm writing an AI Jass script that includes some functions in blizzard.j like BJDebugMsg, but when I put the script in my map it doesn't work because of these functions.
Whenever I check for errors with the Jass checker, it says the function is undefined and I really don't know why. I looked for answers on Hive but didn't find any.
Either I didn't search well or I don't see something that is obvious. I use the latest version of the game.
I would be very grateful if you could help me.
 
Level 2
Joined
Feb 9, 2021
Messages
5
I don't seem to be able to use any function from the file. I tried some other functions but it still doesn't work. I also forgot to mention that this doesn't prevent me from doing what I want because when I use the GUI I can use all these functions thanks to the Custom Script action. But I really wanted to make complete Jass scripts outside the editor and then import them.
 
Level 2
Joined
Feb 9, 2021
Messages
5
Could the reason be that AI scripts only include common.ai functions ? To be honest I know almost nothing about how all of this works.
 
Level 2
Joined
Feb 9, 2021
Messages
5
Ok, I see. Then I just need to copy the non available functions and constants and put them in the AI script, while hoping the natives used in those functions are available. Thank you all for answering.
 
Top