Warriors of Darkness Forum

Welcome to Clan WoD's Forum!
 
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  

Share | 
 

 Need Trigger Help

Go down 
AuthorMessage
TheSpartan
Member
avatar

Number of posts : 50
Username : TheSpartan
Clan : Clan SL
Registration date : 2008-01-26

PostSubject: Need Trigger Help   Fri Apr 18, 2008 6:26 am

If someone could help me with these triggers...

1. Is there a way to make it so that when a hero enters a region at lv 20, he transforms into a type, and keeps his items and lvls?

2. Nevermind
Back to top Go down
View user profile
HamAma
Global Moderator


Number of posts : 227
Username : HamAma
Clan : Clan BS
Registration date : 2008-01-25

PostSubject: Re: Need Trigger Help   Fri Apr 18, 2008 7:39 pm

1. I need to know how many hero types in your map can be transformed by this. If it's a low amount, there's a simple way to do this. If it's a high amount, then I believe you will need JASS which is "kkgoaskforhelpyourselflolbye".
Back to top Go down
View user profile
Anti-krazy
Member
avatar

Number of posts : 61
Username : Anti-krazy
Registration date : 2008-03-29

PostSubject: Re: Need Trigger Help   Fri Apr 18, 2008 9:42 pm

HamAma wrote:
If it's a low amount, there's a simple way to do this. If it's a high amount, then I believe you will need JASS which is "kkgoaskforhelpyourselflolbye".

What the heck does that mean? and where do u put it?
Back to top Go down
View user profile
HamAma
Global Moderator


Number of posts : 227
Username : HamAma
Clan : Clan BS
Registration date : 2008-01-25

PostSubject: Re: Need Trigger Help   Sat Apr 19, 2008 1:12 am

>_>

Which part are you talking about?
Back to top Go down
View user profile
Anti-krazy
Member
avatar

Number of posts : 61
Username : Anti-krazy
Registration date : 2008-03-29

PostSubject: Re: Need Trigger Help   Sat Apr 19, 2008 9:20 am

HamAma wrote:
>_>

Which part are you talking about?

the kkgoaskforhelp something something
Back to top Go down
View user profile
TheSpartan
Member
avatar

Number of posts : 50
Username : TheSpartan
Clan : Clan SL
Registration date : 2008-01-26

PostSubject: Re: Need Trigger Help   Sat Apr 19, 2008 10:12 am

umm is 12 types total too much for GUI?
Back to top Go down
View user profile
Anti-krazy
Member
avatar

Number of posts : 61
Username : Anti-krazy
Registration date : 2008-03-29

PostSubject: Re: Need Trigger Help   Sat Apr 19, 2008 1:42 pm

I still dont get it
Neutral
Back to top Go down
View user profile
HamAma
Global Moderator


Number of posts : 227
Username : HamAma
Clan : Clan BS
Registration date : 2008-01-25

PostSubject: Re: Need Trigger Help   Sat Apr 19, 2008 8:00 pm

Technically, it's never too much, it's more like, if you do it in GUI with enough hero types, you're going to be incurring a lot of if/else/thens.

Code:
Untitled Trigger 001
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        Mountain King Equal to (Unit-type of (Entering unit))
    Actions
        Set TempPt = (Position of (Entering unit))
        Unit - Hide (Entering unit)
        Unit - Create 1 Mountain King for (Owner of (Entering unit)) at TempPt facing Default building facing degrees
        Hero - Set (Last created unit) experience to (Hero experience of (Entering unit)), Hide level-up graphics
        Hero - Modify Strength of (Last created unit): Set to (Strength of (Entering unit) (Exclude bonuses))
        Hero - Modify Agility of (Last created unit): Set to (Agility of (Entering unit) (Exclude bonuses))
        Hero - Modify Intelligence of (Last created unit): Set to (Intelligence of (Entering unit) (Exclude bonuses))
        Hero - Modify unspent skill points of (Last created unit): Set to (Unspent skill points of (Entering unit)) points
        Hero - Give (Item carried by (Entering unit) in slot 1) to (Last created unit)
        Hero - Give (Item carried by (Entering unit) in slot 2) to (Last created unit)
        Hero - Give (Item carried by (Entering unit) in slot 3) to (Last created unit)
        Hero - Give (Item carried by (Entering unit) in slot 4) to (Last created unit)
        Hero - Give (Item carried by (Entering unit) in slot 5) to (Last created unit)
        Hero - Give (Item carried by (Entering unit) in slot 6) to (Last created unit)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Storm Bolt for (Entering unit)) Greater than or equal to 1
            Then - Actions
                Unit - Add Storm Bolt to (Last created unit)
                Unit - Set level of Storm Bolt for (Last created unit) to (Level of Storm Bolt for (Entering unit))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Thunder Clap for (Entering unit)) Greater than or equal to 1
            Then - Actions
                Unit - Add Thunder Clap to (Last created unit)
                Unit - Set level of Thunder Clap for (Last created unit) to (Level of Thunder Clap for (Entering unit))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Bash for (Entering unit)) Greater than or equal to 1
            Then - Actions
                Unit - Add Bash to (Last created unit)
                Unit - Set level of Bash for (Last created unit) to (Level of Bash for (Entering unit))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Avatar for (Entering unit)) Greater than or equal to 1
            Then - Actions
                Unit - Add Avatar to (Last created unit)
                Unit - Set level of Avatar for (Last created unit) to (Level of Avatar for (Entering unit))
            Else - Actions
        Unit - Explode (Entering unit)
        Unit - Remove (Entering unit) from the game
        Custom script:  call RemoveLocation (udg_TempPt)

Probably can be done better, but I'm a lazy bum. I didn't test the code, but I don't see why it shouldn't work, unless I misplaced (last created unit) and (entering unit) somewhere.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Need Trigger Help   

Back to top Go down
 
Need Trigger Help
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Warriors of Darkness Forum :: Warcraft III :: Mapmaking-
Jump to: