Joined: August 31st, 2008, 10:24 am Posts: 420 Location: Malaysia
Title: ☆Fate Testarossa★
As title, is that possible to create a trigger to make unit's movement/attack speed into numbers instead of "Slow/Fast/Very Fast"? Or maybe extract the code from ShadowFrench's MH?
Any suggestion would be nice
_________________
Spoiler for "Wc3 I'm using and Garena ID":
The wc3 version I'm current using:1.21,1.24b,1.24e Garena UID-->pkyer123(BANNED for some reason LOL) -->pkyer(Active) -->InfernoRock(Banned for inactive...WTF!?)
Small Sized Duck wrote:
IF someone is talking about a map they wanted cheated 17 years ago. And you bump it, you're retarded.
Joined: June 22nd, 2008, 10:11 pm Posts: 2410 Location: Mostly USEast
Title: Worst human for 4eva
Extract that into your wc3 directory. It will automatically inject itself into WC3 and change the move speeds from "Very Slow, Slow, etc..." to the corresponding numerical equivalence. It also does the same for attack speed (instead of VSlow, Slow, etc.., it shows numberical values) and also shows hp regen and mp regen below the Intelligence stat if on a hero.
DISCLAIMER: I do not own, nor did I make this program, and I also forgot the name of the person who made it >_>. As with any injector, you will run the risk of being banned and blah blah blah. I will not be held responsible nor will the maker of this program. Use at your own risk.
Tested + works for latest patch only (1.26a). It will not work on any other patches or GGC.
EDIT: I should also answer the topic by saying there is not a trigger that can do this in JASS (that I know of.)
You do not have the required permissions to view the files attached to this post.
_________________
Quote:
(20:53:52) Bartimaeus: Thank you, Jen. (20:53:56) Bartimaeus: Truly, you are wise.
Quote:
(23:44:12) Bartimaeus: I was in pubic school until middle school...
It's possible to make a trigger that does this, measuring the time between two triggers using the events "A unit takes damage" and "A unit attacks a unit". It would require a lot of work though.
Joined: August 31st, 2008, 10:24 am Posts: 420 Location: Malaysia
Title: ☆Fate Testarossa★
Cool! Thank you UndeadxAssassin for the files and George for testing it Thank you too owner123 for the information. Don't worry, I'm use it for local
_________________
Spoiler for "Wc3 I'm using and Garena ID":
The wc3 version I'm current using:1.21,1.24b,1.24e Garena UID-->pkyer123(BANNED for some reason LOL) -->pkyer(Active) -->InfernoRock(Banned for inactive...WTF!?)
Small Sized Duck wrote:
IF someone is talking about a map they wanted cheated 17 years ago. And you bump it, you're retarded.
Joined: February 24th, 2009, 1:31 pm Posts: 3815 Location: JEW LAND
You could do it in jass, it it will be abit tricky. If there is any-part of the code you don't understand let me know.
Note: You do need to add some modifications as this is just the main struct, you need to input some stuff like the agility bonus, and the hero names + Base Attack Speed. I didn't test it I just ran it through my head while writing it and it may not work. Let me know how it goes. all you gotta do after input is done is to write -ats # at game. when # is the bonus attack speed you got (I don't think there is a way to findout how much you got by any other way)
Spoiler:
Code:
globals constant real ATTACK_SPEED_BONUS=0.01 trigger ATTACK_SPEED_CALCULATOR=CreateTrigger() endglobals
function DefineHero takes unit u returns real if GetHeroProperName(u)=="Input Hero Name #1 Here" then return 0.7//this is the default attack-speed - Most of dota heroes have 0.70, you can check them at playdota site. elseif GetHeroProperName(u)=="Input Hero Name #2 Here" then return 0.69//or any other value elseif GetHeroProperName(u)=="Input Hero Name #3 Here" then return 0.71//as you can see it just repeats... so add as many heroes as you want. endif return 0.0 endfunction
function CalculateAttackSpeed takes unit u, integer atspb returns real local real r=DefineHero(u) local integer agi=GetHeroAgi(u,true) if r>0 then return ((1+(atspb/100)+(agi/100)) / r) endif return 0.0 endfunction
function AttackSpeedCalculate_Main takes nothing returns nothing local unit u local group g=CreateGroup() local real r call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null) loop set u=FirstOfGroup(g) exitwhen u==null set r=CalculateAttackSpeed(u,S2I(SubString(GetEventPlayerChatString(),4,StringLength(GetEventPlayerChatString())))) if r>0 then call DisplayTextToPlayer(GetTriggerPlayer(),0,0,R2S(r)) return endif endloop endfunction
function main takes nothing returns nothing local integer i=0 loop exitwhen i>=11 call TriggerRegisterPlayerChatEvent(ATTACK_SPEED_CALCULATOR,Player(i),"-ats",false) set i=i+1 endloop call TriggerAddAction(ATTACK_SPEED_CALCULATOR,function AttackSpeedCalculate_Main) endfunction
_________________
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat. (02:24:28) Lanaya: Gtfo ken. (02:24:33) ChatBot: FatherSpace logs out of the Chat. (02:24:40) Lanaya: Thought so. bitch. (02:24:44) ChatBot: FatherSpace logs into the Chat. (02:24:48) FatherSpace: Can I come back yet? (02:24:51) Lanaya: What'd i say earlier. (02:24:51) Lanaya: No. (02:24:58) FatherSpace: Let's try this... (02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:
(14:33:51) 2Pac: Do you know what'S so funny? (14:34:01) Lanaya: No, please show me. (14:34:07) 2Pac: This. (14:34:09) ChatBot: Lanaya has been logged out (Kicked). (14:34:10) 2Pac:
Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^ (14:36:02) Lanaya: lolz. (14:36:16) 2Pac: I AIN'T DEAD FFS. (14:36:26) 2Pac: I'm a living legend, y'now. (14:37:17) haxorico: why is 2Pac a legend? (14:37:28) Lanaya: He's the worse rapper evar.
Code:
(15:42:51) Lanaya: can i suck , . . .
Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1. (13:55:21) ChatBot: haxorico rolls 1d2 and gets 2. (13:55:27) haxorico: owned?
Code:
GeorgeMots: xplain what happens in SP. Why cant you save? dast.-:i need play with 2 players
Code:
(21:53:08) (673237): plzplzplz, im sorry about before. (21:53:26) FatherSpace: I'm sorry you were born. (21:53:31) ChatBot: (673237) has been logged out (Kicked).
Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
Users browsing this forum: No registered users and 18 guests
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