Custom Hero maps how? as in picking abilitys

Galmore

Member
Joined
Apr 25, 2006
Messages
11
Reaction score
0
:confused: My problem is this.... :confused:

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 :-/ :-/
 

Galmore

Member
Joined
Apr 25, 2006
Messages
11
Reaction score
0
: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
 

Dream_Walker

BattleForums Senior Member
Joined
Feb 20, 2005
Messages
1,924
Reaction score
0
Location
Arcanum
Looks good, I have wondered about how to do the same thing myself. Have you tried in in-game? If so, does it work?
 

Galmore

Member
Joined
Apr 25, 2006
Messages
11
Reaction score
0
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
 

NewPosts

New threads

Top