HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Beginners Demo Map

02-06-2006, 05:17 PM#1
emjlr3
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: jpggewg.JPG (151.1 KB)
Attached Files
File type: w3xDemo Map.w3x (70.0 KB)
03-19-2006, 12:15 AM#2
voodoo_elf
COOL! I like stuff like this :D
03-19-2006, 03:31 AM#3
emjlr3
wow 109 views and a response, finally...
03-20-2006, 10:10 AM#4
hourglasseye
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.)
03-21-2006, 06:32 AM#5
emjlr3
triggers are JASS so hopefully a lot more optimized then GUI
06-19-2006, 07:49 PM#6
Juliano
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....
06-19-2006, 07:57 PM#7
Blade.dk
Have you copied the variables to your map? If you haven't, then that is most likely the problem.
06-19-2006, 08:31 PM#8
Juliano
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.
06-20-2006, 12:14 AM#9
Juliano
bahhh no one knows??
07-23-2006, 07:39 AM#10
Av3n
I need to learn how to use JASS (cause i heard JASS is better than GUI) im pretty new as well so yeah.
07-23-2006, 10:10 PM#11
operator
Copy the variables, don't make new ones. The editor is looking for the variables in the original map
03-05-2007, 02:54 PM#12
DurotarLord
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...
03-29-2007, 07:43 PM#13
emjlr3
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
11-19-2008, 08:34 AM#14
Spite
Uhm.. What is a preprocessor? Is that JASS Newgen or similar?
11-19-2008, 08:03 PM#15
Vexorian
http://www.wc3campaigns.net/showthre...ewpost&t=90999 ?