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 > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 10-17-2006, 03:05 AM   #1
Ignitedstar
Moderator
 
Ignitedstar's Avatar


RP Section Moderator
 
Join Date: Jul 2005
Posts: 1,755

Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)

Send a message via MSN to Ignitedstar Send a message via Yahoo to Ignitedstar
Default Changing color equal to average levels...

I'm making a map that doesn't really need this feature, but it'd be neat to have.

What it would do is to sum up of each of the player's heroes' levels and average them to a number that rounds up(It'd be cleaner to have no decimals; but either way works). Then, in areas around each dungeon, there is a marker that designates how difficult the area is by color.

For example:

If the average level is equal to 4, then the marker at the first dungeon would be yellow, a way of saying "Not too hard, not too easy".

However, if we use the same average level for a much more difficult dungeon, then the marker at that dungeon would be dark green, which would be "You don't stand a chance".

I have no idea whatsoever as to how to make this. Would someone mind helping?
__________________
Current Activity: It's a secret, now.
Evaluation: I actually logged in?!?!
"If I speak in the tongues of men and of angels, but have not love,
I am only a resounding gong or a clanging cymbal.
If I have the gift of prophecy and can fathom all mysteries and all knowledge,
and if I have a faith that can move mountains, but have not love, I am nothing."

1 Corinthians 13:1-2

Current Works:
None.
Ignitedstar is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 10-17-2006, 03:54 AM   #2
Mystic Prophet
User
 
Mystic Prophet's Avatar
 
Join Date: Nov 2005
Posts: 375

Mystic Prophet is on a distinguished road (16)

Send a message via AIM to Mystic Prophet Send a message via MSN to Mystic Prophet
Default

set a variable to (hero level plus all other hero levels/ divided by total hero levels) then you can detect what that number is.
say you have 4 players with heroes at levels 1, 2, 2 and 3. so the average level is two.

the second part of the trigger would compare the average level of the heroes to the average level of the dungeon. so if dungeon level less than or equal to (average hero level -1) then the marker could be light green. If the dungeon level is greater than avg hero level -1 and less than avg hero level +1 it could be yellow, and if it's greater than avg hero level +1 it could be red.

If the markers are done in floating text you will need to set them to a variable when they're created so you can change their color via triggers later on. If they're units you can do the same thing.

Last edited by Mystic Prophet : 10-27-2007 at 11:53 PM.
Mystic Prophet 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 04:01 AM.


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

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