[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
Le Me In College
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,027
Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)
.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.
__________________
Prepare yourselves.
Warcraft 3 is becoming a home for Android.
Almia is offline  
Old 05-11-2013, 08:28 AM   #3 (permalink)
Registered User Almia
Le Me In College
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,027
Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)
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.
__________________
Prepare yourselves.
Warcraft 3 is becoming a home for Android.
Almia is offline  
Old 05-11-2013, 09:50 AM   #4 (permalink)
Registered User gorillabull
User
 
gorillabull's Avatar
 
Join Date: Jul 2011
Posts: 1,189
gorillabull is a jewel in the rough (246)gorillabull is a jewel in the rough (246)gorillabull is a jewel in the rough (246)gorillabull is a jewel in the rough (246)
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
gorillabull is offline  
Old 05-11-2013, 10:07 AM   #5 (permalink)
Forum Moderator Hell_Master
Zangetsu [斬月]
 
Hell_Master's Avatar
Resource Moderator
 
Join Date: Nov 2012
Posts: 4,886
Hell_Master has a brilliant future (1868)Hell_Master has a brilliant future (1868)Hell_Master has a brilliant future (1868)
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
__________________
Hell_Master is offline  
Old 05-11-2013, 10:26 AM   #6 (permalink)
Registered User Almia
Le Me In College
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,027
Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)Almia has much of which to be proud (1022)
Thanks guys.
Nevermind,i'll be sticking with vJASS :D

+ rep to all of ya
__________________
Prepare yourselves.
Warcraft 3 is becoming a home for Android.
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 03:21 PM.





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