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 07-02-2006, 03:20 PM   #1
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default Show damage using floating text (GUI)

Like shadow1500's damage show system but in GUI.

Simple. but usefull!

It leaks ->
Quote:
Originally Posted by PipeDream
Each time you add an event a little memory is allocated for that. That memory is only returned to general use when the trigger is destroyed. The trigger is not informed when a unit dies, that it might let the memory go, nor are we given the tools to manually fix it.
Attached Images
File Type: jpg FDamage.jpg (102.3 KB, 2139 views)
Attached Files
File Type: zip Detection System.zip (43.1 KB, 1223 views)
__________________

Last edited by Freakazoid : 07-17-2006 at 10:58 AM.
Freakazoid is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 07-02-2006, 04:22 PM   #2
Captain Griffen
Dread Lord of the Cookies
 
Captain Griffen's Avatar


Content Director
 
Join Date: Sep 2003
Posts: 5,375

Submissions (2)

Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)

Approved Map: Warlords[Quicksilver #2] - 1st Place

Default

- Unit check should run on map initialisation, rather than 1 second, or it could result in units being added twice (and to decrease lag in game).
- More descriptive trigger names (with correct spelling) would be advisable, possibly with a prefix such as Damage Display, and then Text, Setup and New Units.
__________________
Quote:
Originally Posted by Earth-Fury
Griffen is correct, you are not.
Quote:
[13:32] <Akolyt0r> hmm.. stil i want to have some unused women
Captain Griffen is offline   Reply With Quote
Old 07-02-2006, 06:41 PM   #3
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default

Quote:
Originally Posted by Captain Griffen
- Unit check should run on map initialisation, rather than 1 second, or it could result in units being added twice (and to decrease lag in game).
- More descriptive trigger names (with correct spelling) would be advisable, possibly with a prefix such as Damage Display, and then Text, Setup and New Units.

K, well if trigger names are the porblem, then lets all
__________________
Freakazoid is offline   Reply With Quote
Old 07-02-2006, 06:46 PM   #4
Tim.
Missing You All at Wc3c
 
Tim.'s Avatar


Site Owner
 
Join Date: Jul 2003
Posts: 4,475

Submissions (18)

Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)

Approved Map: PiratesSpell making session 3 winner

Default

Give me a shorter thread title, this is kind of long.
__________________
"oO and if anyone called Tim. trys to make an account then kick there butts." -Mavus, moderator of the GTW forums


Avast! Seen Pirates? Get it here!
Tim. is offline   Reply With Quote
Old 07-02-2006, 07:01 PM   #5
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default

Quote:
Originally Posted by Tim.
Give me a shorter thread title, this is kind of long.

Delete the "Unit takes damage -> ".
__________________
Freakazoid is offline   Reply With Quote
Old 07-03-2006, 01:07 PM   #6
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default !$*EE&EE*$!

Updated and with pic!
__________________
Freakazoid is offline   Reply With Quote
Old 07-04-2006, 05:40 PM   #7
Tim.
Missing You All at Wc3c
 
Tim.'s Avatar


Site Owner
 
Join Date: Jul 2003
Posts: 4,475

Submissions (18)

Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)

Approved Map: PiratesSpell making session 3 winner

Default

Name fixed, I'll get someone to review this.
__________________
"oO and if anyone called Tim. trys to make an account then kick there butts." -Mavus, moderator of the GTW forums


Avast! Seen Pirates? Get it here!
Tim. is offline   Reply With Quote
Old 07-04-2006, 11:36 PM   #8
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default

Kool, thanks!
__________________
Freakazoid is offline   Reply With Quote
Old 07-05-2006, 02:08 AM   #9
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

just a question...what is the point of this when we have the same thing in JASS

this is less optimized(obviously), and with the strict rules they have here I am sure they have easy instructions to implement

not knocking your work, I just don't see a point to it
__________________
emjlr3 is offline   Reply With Quote
Old 07-05-2006, 04:22 AM   #10
Pheonix-IV
I want you inside me...
 
Pheonix-IV's Avatar
 
Join Date: Oct 2002
Posts: 4,006

Submissions (17)

Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)

Default

HAH. I've read that JESP stuff, for somone who's not really interested in trying to learn a programming language, JESP based stuff is totally useless. JESP is only useful for people who are willing to learn some JASS, and even then i find implementing such spells extensive and tedious.

This on the other hand, i understood quite easily and implemented it in about 10 seconds.
__________________
Pheonix-IV is offline   Reply With Quote
Old 07-05-2006, 10:21 AM   #11
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default

Quote:
Originally Posted by Pheonix-IV
HAH. I've read that JESP stuff, for somone who's not really interested in trying to learn a programming language, JESP based stuff is totally useless. JESP is only useful for people who are willing to learn some JASS, and even then i find implementing such spells extensive and tedious.

This on the other hand, i understood quite easily and implemented it in about 10 seconds.

Pheo speaks for me.
__________________
Freakazoid is offline   Reply With Quote
Old 07-06-2006, 05:26 PM   #12
Tim.
Missing You All at Wc3c
 
Tim.'s Avatar


Site Owner
 
Join Date: Jul 2003
Posts: 4,475

Submissions (18)

Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)Tim. is a name known to all (503)

Approved Map: PiratesSpell making session 3 winner

Default

Wrong, JESP makes it easy for people who don't want to change the spell fundamentally to insert the spell into their map; and set the damage/effects all in a nice clean order. JESP != JASS.
__________________
"oO and if anyone called Tim. trys to make an account then kick there butts." -Mavus, moderator of the GTW forums


Avast! Seen Pirates? Get it here!
Tim. is offline   Reply With Quote
Old 07-06-2006, 06:49 PM   #13
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default

Well can someone look into this, approve or send it to the graveyard. I dont want it to turn into "Jass vs GUI" thread
__________________
Freakazoid is offline   Reply With Quote
Old 07-07-2006, 01:01 AM   #14
PipeDream
Moderator
 
PipeDream's Avatar


Code Moderator
 
Join Date: Feb 2006
Posts: 1,405

Submissions (6)

PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)

Default

I like that it is very simple. However, it leaks memory when units die as events are never destroyed. The only way around this is to use one trigger per unit. I don't know how you could fix this in GUI with out destroying the elegance.

Also, you need to use GetWorldBounds() instead of playable map area, as units can be safely moved outside of playable map.

This might be a great first step in a tutorial on damage tags. Because of things like healing and critical strike, each map will have slightly different needs for which makers will need a more generic interface.

JESP, by the way, is a concept critical for sanity in anything non trivial.
__________________
PipeDream is offline   Reply With Quote
Old 07-07-2006, 04:00 AM   #15
Pheonix-IV
I want you inside me...
 
Pheonix-IV's Avatar
 
Join Date: Oct 2002
Posts: 4,006

Submissions (17)

Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)

Default

Despite hours of trying on my part, i have been completely unable to implement any but the simplest forms of JESP spells successfully. I find the documentation insufficient, the process required to install the spells overly long, overcomplecated and highly tedious.

But thats neither here nor there, and is unrelated to the thread.
__________________
Pheonix-IV 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 11:03 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

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