wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Samples
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 02-06-2006, 05:17 PM   #1
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

Send a message via AIM to emjlr3 Send a message via MSN to emjlr3
Default Beginners Demo Map

A map that answers many beginners questions, and is a compilation of many things I have learned over the past months....

Includes:


Hero Revive
Hero Restore
Tree Respawn
Creep Respawn
Creep Waves
No Ally Attack
Hero/Creep Spawn
Random Weather

**Now requires preprocessors
Attached Images
File Type: jpg gewg.JPG (151.1 KB, 1140 views)
Attached Files
File Type: w3x Demo Map.w3x (70.0 KB, 634 views)

Last edited by emjlr3 : 03-29-2007 at 07:41 PM.
emjlr3 is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 03-19-2006, 12:15 AM   #2
voodoo_elf
User
 
voodoo_elf's Avatar
 
Join Date: Feb 2006
Posts: 21

Submissions (1)

voodoo_elf has little to show at this moment (0)

Default

COOL! I like stuff like this :D
__________________
voodoo_elf is offline   Reply With Quote
Old 03-19-2006, 03:31 AM   #3
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

Send a message via AIM to emjlr3 Send a message via MSN to emjlr3
Default

wow 109 views and a response, finally...
__________________
emjlr3 is offline   Reply With Quote
Old 03-20-2006, 10:10 AM   #4
hourglasseye
User
 
Join Date: Mar 2006
Posts: 28

hourglasseye has little to show at this moment (1)

Default

Nice. This should be helpful. Too bad i didn't see it sooner. They seem awful simple though. Still, since they seem to be simple, I kinda feel like sifting through your code and see how it is better than mine noob JASS code... Or are the triggers non-JASS? (come to think of it... i should've checked the map out first before posting. but what the heck.)
__________________
Tired now... Summer classes now... No more map making for now...
~hourglasseye~
hourglasseye is offline   Reply With Quote
Old 03-21-2006, 06:32 AM   #5
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

Send a message via AIM to emjlr3 Send a message via MSN to emjlr3
Default

triggers are JASS so hopefully a lot more optimized then GUI
__________________
emjlr3 is offline   Reply With Quote
Old 06-19-2006, 07:49 PM   #6
Juliano
User
 
Juliano's Avatar
 
Join Date: Jun 2006
Posts: 90

Submissions (1)

Juliano is on a distinguished road (11)

Send a message via MSN to Juliano
Exclamation Question

Guy I dowloaded it but I'm really a noob in jass code, could you tell me what i must do there?

call CreateUnitAtLoc( Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Creep_Types[i], udg_Creep_Positions[i], bj_UNIT_FACING ) //

It says in the editor there's a expected name, all other things are ok...

please tell me, I'm going to use it on my map... I'll credit you, but I don't know what to do here....
__________________
Juliano is offline   Reply With Quote
Old 06-19-2006, 07:57 PM   #7
Blade.dk
.
 
Blade.dk's Avatar


Respected User
 
Join Date: May 2005
Posts: 1,990

Submissions (15)

Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)

Approved Map: Azeroth's Arcane ArenaSpell session 01 winner

Send a message via MSN to Blade.dk
Default

Have you copied the variables to your map? If you haven't, then that is most likely the problem.
__________________
Spell Making Course: Part 1: Making a simple stomp spell.
I wonder if I'll ever finish part 2.
Blade.dk is offline   Reply With Quote
Old 06-19-2006, 08:31 PM   #8
Juliano
User
 
Juliano's Avatar
 
Join Date: Jun 2006
Posts: 90

Submissions (1)

Juliano is on a distinguished road (11)

Send a message via MSN to Juliano
Exclamation

Well I created 2 variables...

Creep_Positions (Point Array)

Creep_Types (Unit Type Array)

like in the map, but it doesn't works... the creep doesn't spawn...

Look:

function Revive_Creep takes nothing returns nothing
local integer i
set i = GetUnitUserData(GetTriggerUnit())
call TriggerSleepAction( 2.00 ) //
call CreateUnitAtLoc( Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Creep_Types[i], udg_Creep_Positions[i], bj_UNIT_FACING ) //
call SetUnitUserData( GetLastCreatedUnit(), i )
endfunction

//===========================================================================
function InitTrig_Creep_Revive takes nothing returns nothing
set gg_trg_Creep_Revive = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Revive, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Creep_Revive, function Revive_Creep )
endfunction

Anything that I must change? For my test I put 2 seconds to spawn.... I must remove the //====?


Sorry for the noob questions... I learned JASS today.
__________________
Juliano is offline   Reply With Quote
Old 06-20-2006, 12:14 AM   #9
Juliano
User
 
Juliano's Avatar
 
Join Date: Jun 2006
Posts: 90

Submissions (1)

Juliano is on a distinguished road (11)

Send a message via MSN to Juliano
Default

bahhh no one knows??
__________________
Juliano is offline   Reply With Quote
Old 07-23-2006, 07:39 AM   #10
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,853

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

I need to learn how to use JASS (cause i heard JASS is better than GUI) im pretty new as well so yeah.
Av3n is offline   Reply With Quote
Old 07-23-2006, 10:10 PM   #11
operator
User
 
Join Date: Apr 2006
Posts: 172

Submissions (7)

operator will become famous soon enough (37)operator will become famous soon enough (37)

Send a message via MSN to operator
Default

Copy the variables, don't make new ones. The editor is looking for the variables in the original map
operator is offline   Reply With Quote
Old 03-05-2007, 02:54 PM   #12
DurotarLord
User
 
DurotarLord's Avatar
 
Join Date: Feb 2006
Posts: 128

Submissions (2)

DurotarLord has little to show at this moment (6)

Default

This doesn't make much sense to me... whats the point in a "beginner's map" that is supposed to be very basic but does everything in jass? Seems pointless to me, anyone that knows how to read jass will know how to write this stuff on their own...
__________________
An open mind is like an open fortress; its wall unbarred and unguarded.
DurotarLord is offline   Reply With Quote
Old 03-29-2007, 07:43 PM   #13
emjlr3
Rehabbing
 
emjlr3's Avatar
 
Join Date: Jun 2005
Posts: 1,386

Submissions (14)

emjlr3 is a jewel in the rough (151)emjlr3 is a jewel in the rough (151)

Mapping Contest First Place

Send a message via AIM to emjlr3 Send a message via MSN to emjlr3
Default

Very large update, reworked almost every trigger, added many more optimizations and comments in, as well as globals for easier customization

now requires preprocessors

@DurotarLord, it is more of a beginners JASS map, but it is good for everyone actually, what could be benefited from JASS as far as efficiency and MUI goes, I made in JASS, the rest is in GUI
__________________
emjlr3 is offline   Reply With Quote
Old 11-19-2008, 08:34 AM   #14
Spite
User
 
Join Date: Nov 2008
Posts: 2

Spite has little to show at this moment (0)

Default

Uhm.. What is a preprocessor? Is that JASS Newgen or similar?
Spite is offline   Reply With Quote
Old 11-19-2008, 08:03 PM   #15
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

http://www.wc3campaigns.net/showthre...ewpost&t=90999 ?
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 06:49 AM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2014, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services