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 03-17-2006, 07:03 AM   #1
Jazradel
Superuser
 
Jazradel's Avatar
 
Join Date: Dec 2005
Posts: 651

Submissions (1)

Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)

Send a message via AIM to Jazradel Send a message via MSN to Jazradel
Default Jump Map

A jass script that allows you to jump a unit in a parabola. Allows you to set the time, height and distance traveled unlike similar maps which only allow you to do one or two of those things.

Version 1.2
Reworked implementation and added some safety features.
Version 1.1
Changed Cache System and fixed Vile's bug
Version 1
Initial Release

For those who use vJass (comes with JassNewGen), Malf has updated the script to take advantage of the new features. To implement, copy + paste into your custom script section. To use, call JumpUnit(unit, location target, real height, real duration).
Expand JASS:
Attached Images
File Type: jpg WC3ScrnShot_031706_180540_02.jpg (92.2 KB, 1695 views)
Attached Files
File Type: w3x Jump Map.w3x (20.0 KB, 543 views)
__________________


Table:
Jump Map
Point System
Warcraft III Model Archive

W3 Model Archive should be available from https://www.mediafire.com/folder/cd5..._III_Resources, PM me if it doesn't work.

Last edited by Jazradel : 02-28-2009 at 04:01 AM.
Jazradel is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 03-17-2006, 08:10 AM   #2
BBDino
Wc3c's resident llama.
 
BBDino's Avatar
 
Join Date: Dec 2002
Posts: 944

BBDino has a spectacular aura about (95)BBDino has a spectacular aura about (95)BBDino has a spectacular aura about (95)BBDino has a spectacular aura about (95)

Default

Yay redundancy! It's like being a Nazi bureaucrat!

Honestly though you don't really make the sell, i would be surprised if this gets approved since you are pretty general in how it's 'flexable' but 'inefficant' [sic]. Perhaps a more detailed feature list?
__________________
Say Yes! to stroking Llamas!
BBDino is offline   Reply With Quote
Old 03-17-2006, 11:21 AM   #3
Jazradel
Superuser
 
Jazradel's Avatar
 
Join Date: Dec 2005
Posts: 651

Submissions (1)

Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)

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

Well, for a start the screen shot is a bit big.

The main thing it features is the ability to choose the location and height you jump to. Most maps with a parabola only feature one of the two. Most of the other stuff is standard.

By inefficant, I mean I over use the handle variables system, I start two timers when I should only use one and I use a couple of ineffeciant bj's.
__________________


Table:
Jump Map
Point System
Warcraft III Model Archive

W3 Model Archive should be available from https://www.mediafire.com/folder/cd5..._III_Resources, PM me if it doesn't work.
Jazradel is offline   Reply With Quote
Old 03-18-2006, 07:09 PM   #4
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

i was actually planning on chaninging that in mine, so you could chose between the height being relative to where you jump to or a set height, would not be to tough, but I ahve not gotten around to it yet
__________________
emjlr3 is offline   Reply With Quote
Old 03-18-2006, 07:14 PM   #5
Chuckle_Brother
Oh for the sake of fudge
 
Chuckle_Brother's Avatar


Respected User
 
Join Date: Dec 2005
Posts: 782

Submissions (2)

Chuckle_Brother will become famous soon enough (53)Chuckle_Brother will become famous soon enough (53)

Send a message via ICQ to Chuckle_Brother Send a message via AIM to Chuckle_Brother Send a message via MSN to Chuckle_Brother Send a message via Yahoo to Chuckle_Brother
Default

Set heights tend to look lame, if I were you I wouldn't waste my time on it.
__________________
"...you play a mean banjo"
Chuckle_Brother is offline   Reply With Quote
Old 03-19-2006, 08:24 PM   #6
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

I can not approve this at all in it's current form. It needs to be in the form of a real spell == effects when a spell is cast. If it is a spell, then it must be in form of a spell, please.
__________________
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 03-20-2006, 06:04 AM   #7
Jazradel
Superuser
 
Jazradel's Avatar
 
Join Date: Dec 2005
Posts: 651

Submissions (1)

Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)

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

It's not actually a spell. I'll make it use a spell and optimize it a bit tonight.

Edit: Okay I've updated the map, and I'm switching it to the Table system now.
__________________


Table:
Jump Map
Point System
Warcraft III Model Archive

W3 Model Archive should be available from https://www.mediafire.com/folder/cd5..._III_Resources, PM me if it doesn't work.

Last edited by Jazradel : 03-20-2006 at 06:24 AM.
Jazradel is offline   Reply With Quote
Old 03-20-2006, 06:33 AM   #8
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

Quote:
Originally Posted by Chuckle_Brother
Set heights tend to look lame, if I were you I wouldn't waste my time on it.

how do u suggest doing a jump spell then?
__________________
emjlr3 is offline   Reply With Quote
Old 03-20-2006, 06:41 AM   #9
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

Well, if it is not a spell, then you don't have to make it as a spell.

But you need to make it easier to test, so you don't have to restart the map everytime, please.
__________________
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 03-20-2006, 07:05 AM   #10
Jazradel
Superuser
 
Jazradel's Avatar
 
Join Date: Dec 2005
Posts: 651

Submissions (1)

Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)

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

Okay done, also improved the coding a bit.
__________________


Table:
Jump Map
Point System
Warcraft III Model Archive

W3 Model Archive should be available from https://www.mediafire.com/folder/cd5..._III_Resources, PM me if it doesn't work.
Jazradel is offline   Reply With Quote
Old 03-20-2006, 05:58 PM   #11
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

You are using functions from Vex's Caster System, I do not see any credits. Fix that.
__________________
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 03-21-2006, 07:21 AM   #12
Jazradel
Superuser
 
Jazradel's Avatar
 
Join Date: Dec 2005
Posts: 651

Submissions (1)

Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)

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

Opps, sorry people I ripped off. Updated.
__________________


Table:
Jump Map
Point System
Warcraft III Model Archive

W3 Model Archive should be available from https://www.mediafire.com/folder/cd5..._III_Resources, PM me if it doesn't work.
Jazradel is offline   Reply With Quote
Old 03-21-2006, 07:30 AM   #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

slight improvement, if you care, saves a few lines of code

Collapse JASS:
function Trig_Jump_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A000' 
endfunction

also, a GUI trigger that would copy the needed globals over may be better too
__________________
emjlr3 is offline   Reply With Quote
Old 03-21-2006, 02:57 PM   #14
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

emjlr3, maybe it is just me, but I do not see it at all in the code.

Anyways, I am approving this, but you could maybe optimize it a bit more, by just using * bj_DEGTORAD once, when you save the value.

Since it is a function and a map that demonstrates how to use it, I think it will belong best in samples.
__________________
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 03-23-2006, 03:30 PM   #15
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

er what?
__________________
emjlr3 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 02:19 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