[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
yeah. YEAH!!!!!!!!!!!!!
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,499
Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)
.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"
- Want to win a spell contest? Create an eyecandy spell with complex but clean and efficient code and balanced synergy
- DSG = Jon Skeet of Wc3
Almia is offline  
Old 05-11-2013, 08:28 AM   #3 (permalink)
Registered User Almia
yeah. YEAH!!!!!!!!!!!!!
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,499
Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)
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"
- Want to win a spell contest? Create an eyecandy spell with complex but clean and efficient code and balanced synergy
- DSG = Jon Skeet of Wc3
Almia is offline  
Old 05-11-2013, 09:50 AM   #4 (permalink)
Registered User gorillabull
2edgy4u
 
Join Date: Jul 2011
Posts: 1,453
gorillabull is just really nice (356)gorillabull is just really nice (356)gorillabull is just really nice (356)
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
__________________
SWG
gorillabull is offline  
Old 05-11-2013, 10:07 AM   #5 (permalink)
Registered User Hell_Master
Kaneki?
 
Hell_Master's Avatar
 
Join Date: Nov 2012
Posts: 5,174
Hell_Master has a reputation beyond repute (2215)Hell_Master has a reputation beyond repute (2215)Hell_Master has a reputation beyond repute (2215)Hell_Master has a reputation beyond repute (2215)Hell_Master has a reputation beyond repute (2215)Hell_Master has a reputation beyond repute (2215)
Former Staff Member: This user used to be on the Hive Workshop staff. 
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 led me by the hand, as if to fill the niches in the memories in my oozing brain fluid. Without even a destination, we kept walking. Disgusting clouds were floating in the sky. I already know what will happen to me the next time I wake up."

[Closed at the moment but little chances of continuation is possible]
Hell_Master is offline  
Old 05-11-2013, 10:26 AM   #6 (permalink)
Registered User Almia
yeah. YEAH!!!!!!!!!!!!!
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,499
Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)Almia has much of which to be proud (1108)
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"
- Want to win a spell contest? Create an eyecandy spell with complex but clean and efficient code and balanced synergy
- DSG = Jon Skeet of Wc3
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 07:10 PM.




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