Jloy1
Legacy Supporter 7
- Joined
- Feb 24, 2011
- Location
- TERA, Mount Tyrannas
THIS IS NOT RECOMMENDED ANY MORE!
IF YOU NEED A MOD TO DISPLAY INFORMATION USE THE HEROMOD FOUND HERE!
EVERYTHING BELOW THIS IS LEGACY. USE AT YOUR OWN RISK!
BIG NOTE: TEST IT IN SINGLE PLAYER AND FAKE THE MESSAGES OR USE THE LOCAL CHANNEL (/ch l). SPAMMING CHAT = MUTE OR BAN.
This is a little guide on how you can add skill cooldowns to the HUD! With the Macro Mod, the possibilities are endless!
Below are the Base Scripts which I use are for the Ninja class. They can be modified to the hearts content to suit your looks, and skills.
Now, first we start with setting up your GUI. Open up your GUI Editor in the Macro Mod menu.
Once on the screen, make sure you add the in game screen to all of the slots, except for the first one.
Now open up your "ingame" screen, adjust the grid to how you feels good, and add in a Label. Using Recall as an example, just change the Label text to Recall for now. Change the colours and settings to your feel. (Control Name doesn't matter for this particular case.)
Now add in a progress bar. This is the main object that will be showing you your cooldown. For this, my recall's cooldown bar fills as the cooldown reduces. For this object, make sure you set the Max Value to the STARTING COOLDOWN value. Recalls in this case is 900 seconds. At this point, name the Control Name "RECALLCD" and make the Expr "900-@#recall". This expresses that it will fill as the cooldown reduces. (Foreground colour does not need to be modified. This is done in the script.)
Now, you have your basic GUI elements set up, time to add the scripts! Now, exit back into the main screen and open up the Text Editor from the same corner that the GUI editor is in. Once on the Text Editor screen, create a new file called "yourclassCD.txt" (replace yourclass with your class, durr) and click create.
You should open up to the text editor screen. Now, enter this code into the editor (copy and paste works):
Make sure to change <name> to your EXACT ingame name.
This is the script that will do the work for you. Now save it, return to the Macro Mod's main screen and go over to the Event's Binding tab. Here, we can make that script watch chat for the skill messages to trigger the GUI.
Now click on the "onChat" event and add this to the macro bind:
Make sure to change the file name to the one you created. (And keep the arrows! <>)
You have now successfully created a cooldown timer for Recall! You can basically recycle the code to create multiple cooldown timers to multiple skills. Just make sure to adjust them to be correct for that skill. All skill information can be found on the Herocraft Wiki! (hc.to/wiki)
Sample of multiple skills on the text file (using my preferred code):
Make sure everything is placed in between the $${ }$$ brackets!
If you have any questions, feel free to post them here and I will try and answer them as best as I can.
HUGE thanks to @Rida for showing me the ways and making the base script. This would have not been possible without her.
(Disclaimer: I am not responsible for any chat spam, mutes, bans, anger or brutally beaten PC's from attempting to do this. If you don't know how to work the mod, google it/research.)
IF YOU NEED A MOD TO DISPLAY INFORMATION USE THE HEROMOD FOUND HERE!
EVERYTHING BELOW THIS IS LEGACY. USE AT YOUR OWN RISK!
--------------------------------------------------------------------------------------------------------------------------------------
BIG NOTE: TEST IT IN SINGLE PLAYER AND FAKE THE MESSAGES OR USE THE LOCAL CHANNEL (/ch l). SPAMMING CHAT = MUTE OR BAN.
This is a little guide on how you can add skill cooldowns to the HUD! With the Macro Mod, the possibilities are endless!
Below are the Base Scripts which I use are for the Ninja class. They can be modified to the hearts content to suit your looks, and skills.
Now, first we start with setting up your GUI. Open up your GUI Editor in the Macro Mod menu.
Once on the screen, make sure you add the in game screen to all of the slots, except for the first one.
Now open up your "ingame" screen, adjust the grid to how you feels good, and add in a Label. Using Recall as an example, just change the Label text to Recall for now. Change the colours and settings to your feel. (Control Name doesn't matter for this particular case.)
Now add in a progress bar. This is the main object that will be showing you your cooldown. For this, my recall's cooldown bar fills as the cooldown reduces. For this object, make sure you set the Max Value to the STARTING COOLDOWN value. Recalls in this case is 900 seconds. At this point, name the Control Name "RECALLCD" and make the Expr "900-@#recall". This expresses that it will fill as the cooldown reduces. (Foreground colour does not need to be modified. This is done in the script.)
Now, you have your basic GUI elements set up, time to add the scripts! Now, exit back into the main screen and open up the Text Editor from the same corner that the GUI editor is in. Once on the Text Editor screen, create a new file called "yourclassCD.txt" (replace yourclass with your class, durr) and click create.
You should open up to the text editor screen. Now, enter this code into the editor (copy and paste works):
Code:
$${
IFMATCHES(%CHATCLEAN%,"<name> used recall");
SET(@#recall, 900);
SETPROPERTY(RECALLCD,colour,#FFB52D00);
DO()
IF(@#recall=0);
BREAK;
ENDIF;
WAIT(1000ms);
DEC(@#recall,1);
WHILE(@#recall>0);
SETPROPERTY(RECALLCD,colour,#FF66A8FF);
ENDIF;
}$$
This is the script that will do the work for you. Now save it, return to the Macro Mod's main screen and go over to the Event's Binding tab. Here, we can make that script watch chat for the skill messages to trigger the GUI.
Now click on the "onChat" event and add this to the macro bind:
Code:
$$<filecreated.txt>
You have now successfully created a cooldown timer for Recall! You can basically recycle the code to create multiple cooldown timers to multiple skills. Just make sure to adjust them to be correct for that skill. All skill information can be found on the Herocraft Wiki! (hc.to/wiki)
Sample of multiple skills on the text file (using my preferred code):
Code:
$${
IFMATCHES(%CHATCLEAN%,"Jloy1 used recall");
SET(@#recall, 900);
SETLABEL(LABEL_RECALLCD, %@#recall%s);
SETPROPERTY(RECALLCD,colour,#FFB52D00);
DO()
IF(@#recall=0);
BREAK;
ENDIF;
WAIT(925ms);
DEC(@#recall,1);
SETLABEL(LABEL_RECALLCD, %@#recall%s);
WHILE(@#recall>0);
SETLABEL(LABEL_RECALLCD, "");
SETPROPERTY(RECALLCD,colour,#FF66A8FF);
ENDIF;
IFMATCHES(%CHATCLEAN%,"Jloy1 used backflip");
SET(@#backflip, 6);
SETLABEL(LABEL_BACKFLIPCD, %@#backflip%s);
SETPROPERTY(BACKFLIPCD,colour,#FFB52D00);
DO()
IF(@#backflip=0);
BREAK;
ENDIF;
WAIT(925ms);
DEC(@#backflip,1);
SETLABEL(LABEL_BACKFLIPCD, %@#backflip%s);
WHILE(@#backflip>0);
SETLABEL(LABEL_BACKFLIPCD, "");
SETPROPERTY(BACKFLIPCD,colour,#FF66A8FF);
ENDIF;
}$$
If you have any questions, feel free to post them here and I will try and answer them as best as I can.
HUGE thanks to @Rida for showing me the ways and making the base script. This would have not been possible without her.
Here are the original scripts I made for Pyro and Paladin classes, which can be easily modified for those two classes (if you're lazy). Jloy uses a slightly different method than I do, but it should be easy enough to figure out the small differences. I also included the gui for Pyro (I can supply the one for Paladin whenever), but again, slight differences.
http://www.filedropper.com/macros2
But yeah, note that his allows for numeric counters as well, while mine does not.
A few people asked me to do a video guide on how to get the cooldown bars working so here it is. Visual learners rejoice!
All credit to @Jloy1 for this game changing discovery
His thread:
http://herocraftonline.com/main/threads/create-gui-elements-in-macro-mod-cooldowns-mana-bar.52934/
The text code that I used in the video (I recommend you copy his though)
Code:$${ IFMATCHES(%CHATCLEAN%,"Ahrall used Backflip"); SET(@#backflip, 6); SETPROPERTY(BACKFLIP,colour,#FFB52D00); DO() IF(@#backflip=0); BREAK; ENDIF; WAIT(1000ms); DEC(@#backflip,1); WHILE(@#backflip>0); SETPROPERTY(BACKFLIP,colour,#FF66A8FF); ENDIF; }$$
(Disclaimer: I am not responsible for any chat spam, mutes, bans, anger or brutally beaten PC's from attempting to do this. If you don't know how to work the mod, google it/research.)
Last edited: