[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 > 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
BSIT Major In Philosophy
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,142
Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)
.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.
__________________
"And his eyes have all the seeming of a demon's that is dreaming"
Almia is offline  
Old 05-11-2013, 08:28 AM   #3 (permalink)
Registered User Almia
BSIT Major In Philosophy
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,142
Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)
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.
__________________
"And his eyes have all the seeming of a demon's that is dreaming"
Almia is offline  
Old 05-11-2013, 09:50 AM   #4 (permalink)
Registered User gorillabull
dont play wow it sux now
 
gorillabull's Avatar
 
Join Date: Jul 2011
Posts: 1,381
gorillabull is just really nice (301)gorillabull is just really nice (301)
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
Accelerator (一方通行)
 
Hell_Master's Avatar
Resource Moderator
 
Join Date: Nov 2012
Posts: 5,145
Hell_Master has a reputation beyond repute (2134)Hell_Master has a reputation beyond repute (2134)Hell_Master has a reputation beyond repute (2134)Hell_Master has a reputation beyond repute (2134)
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
BSIT Major In Philosophy
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,142
Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)Almia has much of which to be proud (1044)
Thanks guys.
Nevermind,i'll be sticking with vJASS :D

+ rep to all of ya
__________________
"And his eyes have all the seeming of a demon's that is dreaming"
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:01 AM.




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