The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hangman
Author Message
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #1
Hangman
Save Lord British from the noose, guess the word game.

83 words included, but you can add/remove/replace as many words as you like.

Create a theme set of words , use for quests, with a little bit of editing you could reward them a new item every time they get it correct.

Or you could just leave it alone for some random Fun Smile

Hangman_v1_1

If you've already download please change Word count in names section to 83 Smile

The One and Only......
(This post was last modified: 02-17-2017 12:10 AM by Catalan_mistral.)
02-16-2017 12:40 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Catalan_mistral's post
Antoska
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: Hangman
Very nice. Thx.
02-16-2017 01:04 AM
Find all posts by this user Like Post Quote this message in a reply
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #3
RE: Hangman
YW Smile

The One and Only......
02-16-2017 01:20 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Hangman
Small typo in line 275 i think

Code:
IF (!STRMATCH(*<ARGS>*, <Tag.Hangman.Word>))
    Tag.Hangman.Tries -+ 1 //Should be -=
02-16-2017 02:15 AM
Find all posts by this user Like Post Quote this message in a reply
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #5
RE: Hangman
Changed. still worked but happy to update my knowledge , and use updated scripting practice Smile

The One and Only......
02-16-2017 05:12 AM
Find all posts by this user Like Post Quote this message in a reply
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #6
RE: Hangman
Just found a small bug, if you've already downloaded, change word count in the names section to 83.

The One and Only......
02-16-2017 06:46 AM
Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #7
RE: Hangman
Easies way for buttons

Code:
ON=1
Letter_Try A
ON=2
Letter_Try B
ON=3
Letter_Try C
ON=4
Letter_Try D
ON=5
Letter_Try E
ON=6
Letter_Try F
ON=7
Letter_Try G
ON=8
Letter_Try H
ON=9
Letter_Try I
ON=10
Letter_Try J
ON=11
Letter_Try K
ON=12
Letter_Try L
ON=13
Letter_Try M
ON=14
Letter_Try N
ON=15
Letter_Try O
ON=16
Letter_Try P
ON=17
Letter_Try Q
ON=18
Letter_Try R
ON=19
Letter_Try S
ON=20
Letter_Try T
ON=21
Letter_Try U
ON=22
Letter_Try V
ON=23
Letter_Try W
ON=24
Letter_Try X
ON=25
Letter_Try Y
ON=26
Letter_Try Z

Add this:
Code:
[DEFNAME hangman_defs]
hangman_words=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,V,W,X,Y,Z

and change code with this;
Code:
On=1 26
LOCAL.DARGN=<EVAL <DARGN>-1>
ARGS=<DEF.hangman_words>
LETTER_TRY <ARGV[<DLOCAL.DARGN>]>

Also only for suggestion, if you use TAG0 for integers, like tag.hangman.tries -> tag0.hangman.tries, it could be better for you, honestly, I only using tag for variables with word.
(This post was last modified: 02-16-2017 07:51 PM by xwerswoodx.)
02-16-2017 02:59 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes xwerswoodx's post
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #8
RE: Hangman
Updated ty xwerswoodx, much appreciated any input to improving skills and the script are always welcome.

The One and Only......
02-17-2017 12:11 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)