- Joined
- Dec 2, 2016
- Messages
- 733
I've recently been given jass scripts from an old map, that I'm trying to use in a new map of the same type of game. They are all .j files. I've tried to create separate triggers for each spell, ability, unit etc. But it is erroring. Am I supposed to import these jass files via the import manager? Or do I just have some error in the code itself?
I have all the files in triggers already.
When I compile the first issue I get is this.
Gyazo - e0811e1384562ceb9ff0a9ee6b1566f0.png
Unable to find Hidden Natives, I've got another trigger that I entitled "Hidden Natives"
Which contains
If anyone could point me in the right direction that would be great, I'd love to make use of all these spells and everything else would save me a ton of time than redoing everything manually.
The whole folder I've been given looks like this.
Gyazo - 404029de4f2ba8ea34e42852644d91c1.png
I don't have jasscraft though, I have Sharp Craft world editor. Would that matter, would it not recognize certain syntax used in these files?
I have all the files in triggers already.
When I compile the first issue I get is this.
Gyazo - e0811e1384562ceb9ff0a9ee6b1566f0.png
Unable to find Hidden Natives, I've got another trigger that I entitled "Hidden Natives"
Which contains
Code:
// hidden natives from common.ai
native GetUnitGoldCost takes integer unitid returns integer
native GetUnitWoodCost takes integer unitid returns integer
native GetUnitBuildTime takes integer unitid returns integer
//constant native GetFoodMade takes integer unitId returns integer
//constant native GetFoodUsed takes integer unitId returns integer
//constant native GetUnitFoodMade takes unit whichUnit returns integer
//constant native GetUnitFoodUsed takes unit whichUnit returns integer
If anyone could point me in the right direction that would be great, I'd love to make use of all these spells and everything else would save me a ton of time than redoing everything manually.
The whole folder I've been given looks like this.
Gyazo - 404029de4f2ba8ea34e42852644d91c1.png
I don't have jasscraft though, I have Sharp Craft world editor. Would that matter, would it not recognize certain syntax used in these files?
Last edited: