[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 05-11-2013, 06:53 AM   #1 (permalink)
Registered User Almia
I will return...
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,075
Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)
.j files

Does importing a .j file and uses it in my code works?
Example:
Jass:
function RandomRad takes nothing returns real
    return GetRandomReal(-bj_PI,bj_PI)
endfunction
Saved as Rad.j and imported it and used it in my map.
__________________
The reason that I will come back is because there are still resources that no one still can't or never had made.
Almia is offline  
Old 05-11-2013, 08:28 AM   #3 (permalink)
Registered User Almia
I will return...
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,075
Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)
Haven't tested this because i don't have WE currently in this computer.
The question is if i will experience syntax error if i use an imported .j file when i use the API of it.
__________________
The reason that I will come back is because there are still resources that no one still can't or never had made.
Almia is offline  
Old 05-11-2013, 09:50 AM   #4 (permalink)
Registered User gorillabull
hi
 
gorillabull's Avatar
 
Join Date: Jul 2011
Posts: 1,294
gorillabull is a jewel in the rough (254)gorillabull is a jewel in the rough (254)gorillabull is a jewel in the rough (254)gorillabull is a jewel in the rough (254)
haha it wont work unless you name it war3map.j, you will get syntax errors undeclared function etc.. tested it and if you name it war3map.j it will replace the current j file on the map
__________________
only quality original resources
gorillabull is offline  
Old 05-11-2013, 10:07 AM   #5 (permalink)
Forum Moderator Hell_Master
Accelerator (一方通行)
 
Hell_Master's Avatar
Resource Moderator
 
Join Date: Nov 2012
Posts: 5,082
Hell_Master has a reputation beyond repute (2114)Hell_Master has a reputation beyond repute (2114)Hell_Master has a reputation beyond repute (2114)
Quote:
Originally Posted by gorillabull View Post
haha it wont work unless you name it war3map.j, you will get syntax errors undeclared function etc.. tested it and if you name it war3map.j it will replace the current j file on the map
Lol, I was to answer the same... well, my answer lies to this guy.

@Almia
This might help you also maybe in some ways: Quick JASS Questions
__________________
"I strive for something beyond the strongest, that challenging me would be the most ridiculous thought ever, that fighting me would be a sin!"

Hell_Master is offline  
Old 05-11-2013, 10:26 AM   #6 (permalink)
Registered User Almia
I will return...
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,075
Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)Almia has much of which to be proud (1033)
Thanks guys.
Nevermind,i'll be sticking with vJASS :D

+ rep to all of ya
__________________
The reason that I will come back is because there are still resources that no one still can't or never had made.
Almia is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 06:04 PM.




Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle