1. pls do not use the 'code'-tag it messes around with the actual content use the 'pre'-tag
2. do your wait in ms then you only have to multiply by 1000 to get the random range
3. there is no if but one if in your code
4. I would highly recommand not to greet everybody since some player might connect a few times within a short period of time
)
Not to the actual script:
$${
unset(&messages[])
&messages[] = "Welcome back, %JOINEDPLAYER%"
&messages[] = "Hello , %JOINEDPLAYER%"
&messages[] = "This is another greeting message to you %JOINEDPLAYER%"
arraysize(&messages[],#size)
dec(#size,1)
random(#text,0,%#size%)
random(#delay,5600,8400)
wait(%#delay%ms)
echo(%&messages[%#text%]%)
}$$
I'm not sure what you mean by using 'pre' tag instead of 'code' if you could go in depth a bit more about that, that'd be awesome. ALSO my reaction script has 'broken' and it keeps repeating the word I was using to test it instead of the actual word that's presented by the plugin (Which was desk). I'm not sure what I did wrong, here's the pre? code?:
${
strip(&chat,%CHAT%)
ifmatches(%&chat%,"\[Reaction\] \*\*\*\* Type this word! \"(.+?)\" \*\*\*\*")
random(#rnd,160,80)
wait(%#rnd%t)
match(%&chat%,"\[Reaction\] \*\*\*\* Type this word! \"(.+?)\" \*\*\*\*",{&word})
// [Reaction] **** Type this word! "desk" ****
//waits between 3.36 and 7.62 seconds so the admins have a harder time finding that
echo(%&word%)
endif
}$
@Mart ye you're right so (totally forgot about that) @Zath so following should work
$${
strip(&chat,%CHAT%)
ifmatches(%&chat%,"\[Reaction\] \*\*\*\* Type this word! \"(.+?)\" \*\*\*\*")
match(%&chat%,"\[Reaction\] \*\*\*\* Type this word! \"(.+?)\" \*\*\*\*",{&word})
random(#rnd,500,1800)
wait(%#rnd%ms) //waits between 0.5 and 1.8 seconds so the admins have a harder time finding that
//(won in 0.00 seconds would be kinda obvious I think)
//remove the wait if you don't want it to have a delay
echo(%&word%)
endif
}$$
How could I add variants to the different greeting messages in my welcome.txt script?
${
random(#rnd,168,112)
//should be like 5.6 - 8.4 seconds
wait(%#rnd%t)
ECHO("Welcome back, %JOINEDPLAYER%!")
endif
}$
EDIT: changed waiting values to 'more human' reaction time and added some context?
EDIT #2: I was able to fix the delay by adding it before 'match()' parameter
It's not working so I tried to put it into a txt file and run it that way but it says "Dangling meta character '*' near index 14 \[Reaction\] **** Type this word! '(,+?)" **** and then I tried to add the delay you were using from the script you made and it made my welcome back not work, here's the code for that.
I was wondering if someone knew how to create a chat script that would see a word in chat and retype it out. I've attached an example image of what gets said in the chat. I'd like to be able to win this "minigame" using a macro, please get back to me soon!
I'm trying to make it so when the tool I'm holding in my hand gets to or under 25 durability it will display that message, please help! I'm also trying to do this with health, hunger, armor and oxygen! Please help!
$${IIF(DURABILITY <= 25);LOG("Your tool is going to break soon!")}$$
$${IIF(ARMOUR <= 25),LOG("&c&lYour armour is going to break soon!")}$$
$${IIF(HEALTH <= 6),LOG("&c&lDeath is imminent!")}$$
$${IIF(HUNGER <= 6),LOG("&e&lYou need to eat!")}$$
$${IIF(OXYGEN <= 3),LOG("&c&lYou need air soon!")}$$
I've been waiting so long for an update to this mod! Thank you SOO much! Also you should add a customization button that reloads your model, I often find it just disappearing when I teleport (/home) then I'd have to relog to reload it (F1 doesn't work, it just cycles it)
Thanks for the 1.10 update I love this so much! It seems that so many GOOD mods are being not updated and forgotten. Thank you very much for keeping this mod alive!
I'm using zPermissions and I set a group to have a disguisecraft perms node and it doesn't display anything but essentials commands. How I can fix this so it show the ALL the groups permissions doing /help.
0
I'm not sure what you mean by using 'pre' tag instead of 'code' if you could go in depth a bit more about that, that'd be awesome. ALSO my reaction script has 'broken' and it keeps repeating the word I was using to test it instead of the actual word that's presented by the plugin (Which was desk). I'm not sure what I did wrong, here's the pre? code?:
0
How could I add variants to the different greeting messages in my welcome.txt script?
EDIT: changed waiting values to 'more human' reaction time and added some context?
EDIT #2: I was able to fix the delay by adding it before 'match()' parameter
EDIT #3: Changed the question
0
It's not working so I tried to put it into a txt file and run it that way but it says "Dangling meta character '*' near index 14 \[Reaction\] **** Type this word! '(,+?)" **** and then I tried to add the delay you were using from the script you made and it made my welcome back not work, here's the code for that.
0
Hey guys!
I was wondering if someone knew how to create a chat script that would see a word in chat and retype it out. I've attached an example image of what gets said in the chat. I'd like to be able to win this "minigame" using a macro, please get back to me soon!
Thanks you!
- Zath137
0
Is there anyway to lower the shield by going by changing the position of the shield in model/item/shield/shield_block.json?
0
That fixed it thank you so much!
0
I'm trying to make it so when the tool I'm holding in my hand gets to or under 25 durability it will display that message, please help! I'm also trying to do this with health, hunger, armor and oxygen! Please help!
$${IIF(DURABILITY <= 25);LOG("Your tool is going to break soon!")}$$
$${IIF(ARMOUR <= 25),LOG("&c&lYour armour is going to break soon!")}$$
$${IIF(HEALTH <= 6),LOG("&c&lDeath is imminent!")}$$
$${IIF(HUNGER <= 6),LOG("&e&lYou need to eat!")}$$
$${IIF(OXYGEN <= 3),LOG("&c&lYou need air soon!")}$$
0
How can I include punctuation in an ECHO statement?
EDIT: SOLVED!
0
I've been waiting so long for an update to this mod! Thank you SOO much! Also you should add a customization button that reloads your model, I often find it just disappearing when I teleport (/home) then I'd have to relog to reload it (F1 doesn't work, it just cycles it)
0
If anyone knows why this is happening please help fix! Here's a download to rp with only randomized textures & blockstates.
0
This is a very cute pack, I need to try this out!
0
Thanks for the 1.10 update I love this so much! It seems that so many GOOD mods are being not updated and forgotten. Thank you very much for keeping this mod alive!
0
Is there a way I can only use the water texture instead of the whole shader pack?
0
Well it turns out that Essentials isn't too supported on 1.8
0
I'm using zPermissions and I set a group to have a disguisecraft perms node and it doesn't display anything but essentials commands. How I can fix this so it show the ALL the groups permissions doing /help.
(Can provide more info if needed)
Thank you so much for your time!