The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Chat box Commands

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

Solved Chat box Commands

Post by Royer Blaze on June 3rd 2015, 2:58 am

I was wondering if it'd be possible to add a chat box command for a d6 dice roll instead of using the dice roll feature via posts.

*Edited* Is there possibly a JavaScript that'd allow me to add a dice roll feature to my chatbox?


Last edited by Royer Blaze on July 10th 2015, 8:10 pm; edited 2 times in total

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 4th 2015, 2:58 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by JScript on June 4th 2015, 3:42 am

@Royer Blaze wrote:Bump
Yes, it's perfectly possible to add new commands in chat, but show me an example of how it should be the one you want ok?
It can be an image (PrtScr) for example ...

Remember that: "A picture is worth a thousand words!"

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 4th 2015, 3:49 am

I was hoping for something along the lines of a /roll command, or [roll] in the chat box and it'll roll a d6 for me. I do have some icons made that look like dice that I could use as images.

I'm wanting to avoid using the roll via post if I can help it.

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 5th 2015, 3:56 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 6th 2015, 5:50 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 7th 2015, 1:35 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 7th 2015, 4:20 am

@JScript wrote:
@Royer Blaze wrote:Bump
Yes, it's perfectly possible to add new commands in chat, but show me an example of how it should be the one you want ok?
It can be an image (PrtScr) for example ...

Remember that: "A picture is worth a thousand words!"

JS
I'd love to add a /roll command to my chat. So that the system rolls the dice (a d6 in this case) and shows the roll in chat that way there is no cheating. I have some dice icons that I made up that could be used in the place of a roll total showing up. Or do you mean them taking a screenshot of their roll?

I've been trying fruitlessly for the last couple of days to google search something, but have came up empty handed each time. I've found plenty of dice rollers however, but they are on a page and not want I'm looking for.

Sorry to be difficult.

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 8th 2015, 7:05 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 9th 2015, 3:25 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 10th 2015, 1:41 am

Bump, any advice?

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by SLGray on June 10th 2015, 2:46 am

Yesterday at 8:25 pm
Today at 6:41 pm

Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead!


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36735
Reputation : 2447
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Chat box Commands

Post by JScript on June 10th 2015, 2:51 am

@Royer Blaze
Hello!
Assuming that the command is /dice or /roll, what is the syntax you would use and the result would use images?

Excuse me for not longer seen the topic, you did not mention my nickname...

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 10th 2015, 4:11 am

@JScript

Either /dice or /roll would work. I'd like it to be a d6 roll, and I have image/icons that I made that I could use or if it'd generate a post saying the roll, similar to how it works via posting on a thread. Wanting to be able to play a dice game in the chat without using the thread posting dice roll.

And thanks for the reply, and sorry that I didn't space it out enough. I usually check nightly after work.

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 12th 2015, 1:15 am

@Royer Blaze wrote:@JScript

Either /dice or /roll would work. I'd like it to be a d6 roll, and I have image/icons that I made that I could use or if it'd generate a post saying the roll, similar to how it works via posting on a thread. Wanting to be able to play a dice game in the chat without using the thread posting dice roll.

And thanks for the reply, and sorry that I didn't space it out enough. I usually check nightly after work.
@JScript Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 13th 2015, 1:56 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 15th 2015, 4:57 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 17th 2015, 1:25 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 18th 2015, 6:01 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 21st 2015, 2:07 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 22nd 2015, 7:56 am

@Royer Blaze wrote:@JScript

Either /dice or /roll would work. I'd like it to be a d6 roll, and I have image/icons that I made that I could use or if it'd generate a post saying the roll, similar to how it works via posting on a thread. Wanting to be able to play a dice game in the chat without using the thread posting dice roll.

And thanks for the reply, and sorry that I didn't space it out enough. I usually check nightly after work.
Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 25th 2015, 3:59 am

Bump, please? Still trying to get this figured out.

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 26th 2015, 5:20 am

Bump?

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 27th 2015, 5:56 am

Bump

Wanted to be more clear, so I could possibly get some help.

I'm wanting to add a Dice Roll Command to my Chat Box that I have set up on my forum. I don't mind if it uses images, as I have some dice 'avatars' that I have made to use for that should they be needed. As long as its generated at random to allow for fairness.

I know there is a RP Dice Roll function on the forums, but I'm not wanting to use that, as I am wanting to use it solely in my chat box for members to play in real time.

If there isn't anyway to add a command like this, please let me know. I've tried searching off and on for a few weeks now, but the closest I've gotten is finding an old mod that is for phpbb2.

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on June 30th 2015, 9:18 pm

Anyone? scratch

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by darkline33 on July 2nd 2015, 4:23 pm

I am stuck with this problem too.

darkline33
Forumember

Male Posts : 110
Reputation : 2
Language : Dutch
Location : Rekt

http://golddddddden-apple.actieforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on July 3rd 2015, 6:24 am

Bump?

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on July 5th 2015, 6:47 am

Bump

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Royer Blaze on July 7th 2015, 6:19 am

Any advice?

Royer Blaze
Forumember

Male Posts : 87
Reputation : 1
Language : English

http://thegoldendarkage.motionsforum.com/

Back to top Go down

Solved Re: Chat box Commands

Post by Ange Tuteur on July 7th 2015, 11:12 am

Hi @Royer Blaze,

I apologize for the late reply. I can't give you a definitive answer, but I can provide you with some information.

For one, any modifications to the chatbox cannot be installed through JavaScript codes management. It's not impossible though, as you CAN access the frame contents from wherever it's installed, although this can require constant polling to ensure that the added content doesn't get removed.

It's absolutely possible to create a dice rolling feature with JavaScript, although it depends on how complex you want it. This is a simple example that can be applied to an HTML page :
Code:
<script type="text/javascript">//<![CDATA[
function faRoll() {
  var result = [
    '1',
    '2',
    '3',
    '4',
    '5',
    '6'
  ];
  alert('You rolled ' + result[Math.floor(Math.random() * result.length)] + ' !');
}
//]]></script>
<input type="button" value="Roll" onclick="faRoll();" />

The same method can be applied to the Chatbox, but as I said before, it depends on how complex you want it.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum