Clan TMMM
Would you like to react to this message? Create an account in a few clicks or log in to continue.


The official site of Clan TMMM
 
HomeHomeSearchLatest imagesRegisterLog in


Latest topics
» Kevkevqaz is back
Any one know a better way? I_icon_minitimeby Eat_bacon_daily Wed Feb 22, 2023 7:22 pm

» Hey whats up
Any one know a better way? I_icon_minitimeby seankly Tue Feb 04, 2020 10:32 pm

» Gotta click fast - WC3 Mazing #mildlyinteresting
Any one know a better way? I_icon_minitimeby hoffmann Wed Jun 21, 2017 10:28 pm

» I'm getting married and you guys are invited
Any one know a better way? I_icon_minitimeby Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
Any one know a better way? I_icon_minitimeby Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
Any one know a better way? I_icon_minitimeby Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
Any one know a better way? I_icon_minitimeby Eat_bacon_daily Fri Oct 16, 2015 11:20 pm

SC2 Links
SC2 Challenge/Tourney Info

Official SC2 Forums

SC2 Curse

SC2Mapster

Team Liquid

SC2 Replayed

SC2 Strategy
WC3 Links
Clan_TMMM[Host] Info

WC3 Challenge/Tourny Rules

Epicwar
Poll
What game does everyone play now?
Starcraft 2
Any one know a better way? I_vote_lcap26%Any one know a better way? I_vote_rcap
 26% [ 8 ]
Warcraft 3
Any one know a better way? I_vote_lcap35%Any one know a better way? I_vote_rcap
 35% [ 11 ]
League of Legends
Any one know a better way? I_vote_lcap19%Any one know a better way? I_vote_rcap
 19% [ 6 ]
World of Warcraft
Any one know a better way? I_vote_lcap0%Any one know a better way? I_vote_rcap
 0% [ 0 ]
Diablo 2
Any one know a better way? I_vote_lcap0%Any one know a better way? I_vote_rcap
 0% [ 0 ]
No games at all
Any one know a better way? I_vote_lcap10%Any one know a better way? I_vote_rcap
 10% [ 3 ]
Other game not listed
Any one know a better way? I_vote_lcap10%Any one know a better way? I_vote_rcap
 10% [ 3 ]
Total Votes : 31
Transparency

 

 Any one know a better way?

Go down 
2 posters
AuthorMessage
Achilles.42
Commander
Commander
Achilles.42



Any one know a better way? Empty
PostSubject: Any one know a better way?   Any one know a better way? I_icon_minitimeSat Jan 09, 2010 7:02 pm

So i need a custom hero trigger
The one i have right now is below, i took it from some old custom hero map
is there a better way to do it?
Spoiler:
Back to top Go down
Pat1487
Moderator
Moderator
Pat1487



Any one know a better way? Empty
PostSubject: Re: Any one know a better way?   Any one know a better way? I_icon_minitimeSun Jan 10, 2010 12:13 am

What do you mean by better
That should work fine
It would be like custom hero survival

If you wanted something more like custom hero line wars or custom footies it would be pretty much the same
Code:
Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Value
    Actions
        Set skill[(Player number of (Triggering player))] = Value
        Wait 0.20 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of skill[(Player number of (Triggering player))] for (Triggering unit)) Less than 1
            Then - Actions
                Unit - Add skill[(Player number of (Triggering player))] to (Triggering unit)
            Else - Actions
                Player - Add 1 to (Triggering player) Current lumber
The skill would cost 1 lumber (you could use gold if you want) and you would start them out with 4 lumber (or however many skills you want them to have)
If you want to seperate ults from normal skills so that they could only have 1 ult you would need to give them 3 lumber to start then once they got 3 normal skills move them to where the ults are sold

Both of those would need 1 trigger for each skill
If you wanted 1 trigger for all the skills
Make an array called items[] of type item with a size of however many skills you have in the game
And an array called abilities[] of type ability with the same size as items[]

Then set all the skills and items you use to give the skills to those arrays in the same order at map init
So if the item you use to give the crit strike skill is item[1]
The skill for crit strike would be ability[1]
If the trueshot item is item[2] then trueshot has to be ability[2]

Then the trigger would be
Code:
Events
        Unit - A unit Acquires an item
    Conditions
    Actions
    For each (Integer A)from 1 to (however many skills you have in your game), do (Actions)
      Loop Actions
      If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Item-type of (Item being manipulated)) Equal to item[(Integer A)]
      Then - Actions
        Set skill[(Player number of (Triggering player))] = ability[(Integer A)]
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of skill[(Player number of (Triggering player))] for (Triggering unit)) Less than 1
            Then - Actions
                Unit - Add skill[(Player number of (Triggering player))] to (Triggering unit)
            Else - Actions
                Player - Add 1 to (Triggering player) Current lumber
And you would only need 1 trigger for all the skills
Its the same for the custom survival type trigger if you want to use that kind with 1 trigger for all your skills
Back to top Go down
Achilles.42
Commander
Commander
Achilles.42



Any one know a better way? Empty
PostSubject: Re: Any one know a better way?   Any one know a better way? I_icon_minitimeSun Jan 10, 2010 12:22 am

well like u can do wisp wheels like i do in my tutorial, or u can do them like u do and use arrays and such which in the long run = way less work. thats what i ment by better. Thx for the other stuff though idk which one i want to use yet >.>
Back to top Go down
Sponsored content





Any one know a better way? Empty
PostSubject: Re: Any one know a better way?   Any one know a better way? I_icon_minitime

Back to top Go down
 
Any one know a better way?
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Clan TMMM :: Warcraft 3 :: WC3 Tutorials and Help-
Jump to: