[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 |
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, 07:53 AM   #1 (permalink)
Almia
Dig Bick
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,576
Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)
.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.
__________________
- Want to win a spell contest? Create an eyecandy spell with complex but clean and efficient code and balanced synergy

- The world and the universe as we know it is a result of a chaotic events. Every moment that has happened, happening, or will happen, starting in the birth of the universe to the moment you are reading this statement, have already been determined, based on the initial conditions.

If you look at it, we are just in a one big computer simulation.
Almia is offline  
Old 05-11-2013, 09:28 AM   #3 (permalink)
Almia
Dig Bick
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,576
Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)
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.
__________________
- Want to win a spell contest? Create an eyecandy spell with complex but clean and efficient code and balanced synergy

- The world and the universe as we know it is a result of a chaotic events. Every moment that has happened, happening, or will happen, starting in the birth of the universe to the moment you are reading this statement, have already been determined, based on the initial conditions.

If you look at it, we are just in a one big computer simulation.
Almia is offline  
Old 05-11-2013, 10:50 AM   #4 (permalink)
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, 11:07 AM   #5 (permalink)
Hell_Master
Twisted
 
Hell_Master's Avatar
 
Join Date: Nov 2012
Posts: 5,178
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, 11:26 AM   #6 (permalink)
Almia
Dig Bick
 
Almia's Avatar
 
Join Date: Apr 2012
Posts: 4,576
Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)Almia has much of which to be proud (1127)
Thanks guys.
Nevermind,i'll be sticking with vJASS :D

+ rep to all of ya
__________________
- Want to win a spell contest? Create an eyecandy spell with complex but clean and efficient code and balanced synergy

- The world and the universe as we know it is a result of a chaotic events. Every moment that has happened, happening, or will happen, starting in the birth of the universe to the moment you are reading this statement, have already been determined, based on the initial conditions.

If you look at it, we are just in a one big computer simulation.
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:46 PM.




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