Get rid fo this ad! Click here to register for your free account.

Welcome to the BF Forums! Register Now, It's Free!

Welcome to the BF Forums; your source for the latest and greatest video game news, strategies, discussions, and resources. Join over 60,000 like-minded gamers from around the world to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.

Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
Register for free today, and these ads will disappear!
BattleForums.com Forums > Major Games > Warcraft > Warcraft Maps and Modifications

##Click Here## | BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 04-25-2006, 03:22 PM   #1 (permalink)
BattleForums Newbie
 
Join Date: Apr 2006
Posts: 11
Custom Hero maps how? as in picking abilitys

My problem is this....

I can Add an ability but that ability then can not be leveled as the hero levels

How do I create a map where a player can chose a hero then pick what abilitys they want and an ultimate and still have it where they can level those abilitys.

There was a map i played at a friends where we picked a hero then pick 3 abilitys and then an ultimate ... then as we leveled we could incresss those abilitys also ever few mins the tow teams would battle but ... when ur hero would level the hero ablitiy button would bring u to 4 buttons called ablity 1 ablity 2 and ablitiy 3 and ultimate ... and if u clicked ablility 1 it would add that ability to ur hero, but if you didnt have the right level or regirements you were unable to level that ability and had to level a defferent one.

How do i create something like that ????

any tips would be help full or maps that do this and are not protected ... and i dont want one where u have to buy upgrades to a skill

also if i knew how to find out if a hero has a ability and see what level it is at and what the requirements for the next level are i might be able to create a work around

Last edited by Galmore; 04-25-2006 at 03:51 PM.
Galmore is offline   Reply With Quote
Alt Heute
Advertising

Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
   
Old 04-25-2006, 05:24 PM   #2 (permalink)
BattleForums Newbie
 
Join Date: Apr 2006
Posts: 11
:dance :dance :dance Ok i figured a work around

Ability_For_Player[]
Ability_Level_For_Player[]
these are arrays one is an array of Abilitys and the other is just an array of numbers to represent the level for that ability

First i have a shop sell an item .. each item when aquired will fire a trigger to set ether ability 1 2 or 3 to that abilitys

then i have a trigger for when the hero levels and u chose an ability to level here it is


Code:
Learn Abilitys Trigger
    Events
        Unit - A unit Learns a skill
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Learned Hero Skill) Equal to Ability 1 
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Alility_Level_for_player[((Player number of (Owner of (Triggering unit))) + 1)] Equal to 0
                    Then - Actions
                        Unit - Add Ability_For_Player[((Player number of (Owner of (Triggering unit))) + 1)] to (Triggering unit)
                        Set Alility_Level_for_player[((Player number of (Owner of (Triggering unit))) + 1)] = (Alility_Level_for_player[((Player number of (Owner of (Triggering unit))) + 1)] + 1)
                        Unit - Remove Ability 1  from (Triggering unit)
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                Alility_Level_for_player[((Player number of (Owner of (Triggering unit))) + 1)] Not equal to 3
                            Then - Actions
                                Game - Display to (All players controlled by a ((Owner of (Triggering unit)) controller) player) the text: You have incressed ...
                                Unit - Increase level of Ability_For_Player[((Player number of (Owner of (Triggering unit))) + 1)] for (Triggering unit)
                                Set Alility_Level_for_player[((Player number of (Owner of (Triggering unit))) + 1)] = (Alility_Level_for_player[((Player number of (Owner of (Triggering unit))) + 1)] + 1)
                                Unit - Remove Ability 1  from (Triggering unit)
                            Else - Actions
                                Game - Display to (All players controlled by a ((Owner of (Triggering unit)) controller) player) the text: Sorry This Ability ...
                                Unit - Remove Ability 1  from (Triggering unit)
                                Hero - Modify unspent skill points of (Triggering unit): Add 1 points
            Else - Actions

so this is my work around .... well if anyone has questions about it ill try to help ya :dance
Galmore is offline   Reply With Quote
Old 04-25-2006, 05:34 PM   #3 (permalink)
BattleForums Senior Member
 
Dream_Walker's Avatar
 
Join Date: Feb 2005
Location: Arcanum
Age: 17
Posts: 1,909
Looks good, I have wondered about how to do the same thing myself. Have you tried in in-game? If so, does it work?
__________________
(\_/)
(O.o)
(> <) Bunnies rule the world. Paste him in your sig for world domination!
Married to §tar§oft
:heart Krobelus :heart

Quote:
Originally Posted by §tar§oft
don't make me smother your face in my thousand year old pussy
Quote:
Originally Posted by Trojan
Because Jenny is like an unfiltered bottle of water. You want it, but once you see whats on the bottom, you go ewww.
Thanks to Hellwolf_36 for my avatars .
Dream_Walker is offline   Reply With Quote
Old 04-25-2006, 09:56 PM   #4 (permalink)
BattleForums Newbie
 
Join Date: Apr 2006
Posts: 11
Ya it works ... well i tested it useing the chain lighting ability ... worked fine and when i tryed going past level 3 (thats the max level for it) it didnt use up a skill point lol

right now im trying to make it so each ability levels based only after the hero has got to say level 6 ... seems to work fine but im geting quite a large nest of if..then..else staments lol
Galmore is offline   Reply With Quote
 
Reply

« Plunder! | How to pick the highest value in a variable array? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 09:29 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0