You don't have to wait 5 seconds because the macro isn't run until after you fill in the parameter value. However there isn't a way to programatically display the playback screen. You could try PRESS(41) but it's very likely to result in a stuck key.
When I press GRAVE the screen with the buttons comes up, can't I just have it so it presses GRAVE afterwards? Some kinda wait until user input or something?
When I press GRAVE the screen with the buttons comes up, can't I just have it so it presses GRAVE afterwards? Some kinda wait until user input or something?
This is what it should do if you use the macro you described:
$${ECHO("/kick $$u");PRESS(41)}$$
Becuase the $$u will be requested first, then the ECHO then the PRESS.
The "wait until user input" is already provided by the way parameters work, because the macro isn't run until all parameters are supplied. You may need to put a tiny wait in there just to give the GUI time to close:
It just turns an array into a string of values separated by commas, so you can prompt for it using a regular list. And of course you would use it for an array of your choosing.
It just turns an array into a string of values separated by commas, so you can prompt for it using a regular list. And of course you would use it for an array of your choosing.
By the way, foreach can also supply the ordinal if you provide a counter variable as the 3rd argument:
That's exactly what I was looking for, thank you very much troyboy and Mumfrey !
Just be careful not to let the array get too large because every loop of the FOREACH is one tick so as the array gets bigger the script will take longer and longer to run.
There was a time when this mod was compatible with WorldeditCUI, any ideas on why the don't work together now?
This mod works fine with WE CUI for me. You're probably using Single Player Commands, which is no longer compatible with it. But for bukkit servers they work just fine together.
Hi, I'm fairly new to the mod and need a bit of help, I love pvp servers and wanted to make a script that informs me of my health
I put this in the "OnHealthChange" slot and it doesnt seem to work
$${IIF(HEALTH = 10,LOG(Health is at 50%)}$$
Im fully aware what is wrong but i just dont know how to fix it its taking the , and inserting the log as text and if i use a semi-colon it takes it as a separate command and spams my logs. I would appreciated any assistance i can get
Hi, I'm fairly new to the mod and need a bit of help, I love pvp servers and wanted to make a script that informs me of my health
I put this in the "OnHealthChange" slot and it doesnt seem to work
$${IIF(HEALTH = 10,LOG(Health is at 50%)}$$
Im fully aware what is wrong but i just dont know how to fix it its taking the , and inserting the log as text and if i use a semi-colon it takes it as a separate command and spams my logs. I would appreciated any assistance i can get
I've always found that IIF never worked properly (for me), so use this:
Hi, I'm fairly new to the mod and need a bit of help, I love pvp servers and wanted to make a script that informs me of my health
I put this in the "OnHealthChange" slot and it doesnt seem to work
$${IIF(HEALTH = 10,LOG(Health is at 50%)}$$
Im fully aware what is wrong but i just dont know how to fix it its taking the , and inserting the log as text and if i use a semi-colon it takes it as a separate command and spams my logs. I would appreciated any assistance i can get
Thanks so much
When I press GRAVE the screen with the buttons comes up, can't I just have it so it presses GRAVE afterwards? Some kinda wait until user input or something?
This is what it should do if you use the macro you described:
Becuase the $$u will be requested first, then the ECHO then the PRESS.
The "wait until user input" is already provided by the way parameters work, because the macro isn't run until all parameters are supplied. You may need to put a tiny wait in there just to give the GUI time to close:
I actually tried modifying it to fit my needs better, and now it won't display anything.
Here's a pretty good method that seems to do the trick:
It just turns an array into a string of values separated by commas, so you can prompt for it using a regular list. And of course you would use it for an array of your choosing.
By the way, foreach can also supply the ordinal if you provide a counter variable as the 3rd argument:
Just be careful not to let the array get too large because every loop of the FOREACH is one tick so as the array gets bigger the script will take longer and longer to run.
Custom sounds
I see the folder called "sounds", in the mods folder.
This indicates that the mod can use custom sounds in "playsound()"
How do you use custom sounds?
1) What file formats does it support?
2) Special names for the audio files?
3) What to call in "playsound()"?
._.
This mod works fine with WE CUI for me. You're probably using Single Player Commands, which is no longer compatible with it. But for bukkit servers they work just fine together.
I put this in the "OnHealthChange" slot and it doesnt seem to work
$${IIF(HEALTH = 10,LOG(Health is at 50%)}$$
Im fully aware what is wrong but i just dont know how to fix it its taking the , and inserting the log as text and if i use a semi-colon it takes it as a separate command and spams my logs. I would appreciated any assistance i can get
I've always found that IIF never worked properly (for me), so use this:
Thanks so much Okay now i understand a bit more and im glad to know im not hopeless like i thought lol had the right concept
IIF(boolean,echowhentrue,echowhenfalse)
That is how iif is.
IF(boolean);LOG(whentrue);ELSE;LOG(whenfalse);ENDIF
Is what you want.
Okay so IF is kinda like where it needs to start and the ENDIF signals the if to stop? And it didn't work :I