wc3edit.net

United Warcraft 3 map hacking!
It is currently January 6th, 2009, 8:29 am

 

All times are UTC




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Percentage Trigger Help
PostPosted: November 1st, 2008, 9:20 pm 
Offline
Senior Member
User avatar

Joined: December 14th, 2007, 9:56 am
Posts: 159
Title: Naruto Addict
i am trying to make a trigger like the one for Sniper's ability in Enfo's Team Survival that gives a percent chance each attack to instantly kill the attacked unit and i need help please

_________________
ImageVSImage


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 1st, 2008, 10:10 pm 
Offline
Honorary wc3edit.net Traitor
User avatar

Joined: February 1st, 2007, 4:11 pm
Posts: 2530
Location: Nevada (North)
blalablablal

make custom ability based on crit strike

1% or less or so, for first level, then increase as you go

instantly do 9999999999x normal damage to unit

etcetc ;-)

_________________
Image

Perma-retired until my blue/green status is returned or more.


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 2nd, 2008, 2:00 am 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
Yah, I mean this one has to be commen sense...

Just copy the critical strike from Object editor, and edit the damage multiplier to 99999999 and the % chance...This will be in decimal form. So instead of 100% chance, it will be 1.00, which = 100% for you kiddies out there =D. Just change this to .01 or less...if you can.

Xantan??? Why did you get demoted....Again?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 2nd, 2008, 8:05 pm 
Offline
Senior Member
User avatar

Joined: December 14th, 2007, 9:56 am
Posts: 159
Title: Naruto Addict
i wanted it in Trigger form because i don't want the stupid number displayed above your hero's head in red i want to play a sound instead

_________________
ImageVSImage


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 2nd, 2008, 8:27 pm 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
Code:
One Hit Kill
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Set Integer = (Random integer number between 1 and 100)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Integer Equal to 43
            Then - Actions
                Unit - Kill (Attacking unit)
                Game - Display to (All players) the text: HEADSHOT!!!
            Else - Actions


Blah blah blah, there you go. lol

_________________
Image


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 3rd, 2008, 11:51 am 
Offline
Senior Member
User avatar

Joined: December 14th, 2007, 9:56 am
Posts: 159
Title: Naruto Addict
there are 2 things bothering me about that trigger
1) i was talking about the attacker killing his target in 1 hit and it looks like some parts are diff than should be
2) how in the name of god do i set the percentage to what i want?

_________________
ImageVSImage


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 3rd, 2008, 1:36 pm 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
Don't we know basic Mathmatics? Number/Out of Whole = %....
-Like 5/10 is, thats right kiddies 50%!!
-So if you want a percentage...Do some basic mathmatics....

Solution #2!

Unit - Kill (Attacked unit)

That was hard =D

_________________
Image


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 7th, 2008, 12:21 am 
Offline
Senior Member
User avatar

Joined: December 14th, 2007, 9:56 am
Posts: 159
Title: Naruto Addict
i know basic mathematics what i dont know is what frickin numbers i change to make the percentage what i want

_________________
ImageVSImage


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 7th, 2008, 3:08 am 
Offline
Super Moderator
User avatar

Joined: June 2nd, 2007, 6:53 pm
Posts: 809
Location: US East
Well, since it chooses a random number between 1 and 100, then I would try setting that thing that checks for a certain number to a range of numbers, to get the right percent. Currently, it only does it if it's 43. That's 1 number out of 100 possibilities, so it's one percent. Set the 43 to a range of numbers. The more numbers you cover, the higher the chance of it happening.

_________________
Image
Image
Image
Image

My Tool Collection/Archive!
[url="http://stopsylvia.com"]Sylvia Browne[/url]


Top
 Profile  
 
 Post subject: Re: Percentage Trigger Help
PostPosted: November 7th, 2008, 4:27 am 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
Code:
Headshot Trigger
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Set Integer = (Random integer number between 1 and 100)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        Integer Equal to 1
                        Integer Equal to 2
                        Integer Equal to 3
                        Integer Equal to 4
                        Integer Equal to 5
            Then - Actions
                Unit - Kill (Attacked unit)
                Game - Display to (All players) the text: (Player_Names[(Player number of (Owner of (Attacking unit)))] + (Has HeadShot  + Player_Colors[(Player number of (Owner of (Attacked unit)))]))
            Else - Actions



Code:
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        Integer Equal to 1
                        Integer Equal to 2
                        Integer Equal to 3
                        Integer Equal to 4
                        Integer Equal to 5


YOu see this trigger? The more Integer Equal to (##) you add, the more %'age you have to kill the Attacking Unit. So if you have 10 of those conditions, you have a 10/100 chance to kill the Attacking Unit, or a 10% chance, GOt it now?

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Privacy Policy Statement
Impressum (German)