SphereCommunity
Hangman - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Hangman (/Thread-Hangman)



Hangman - Catalan_mistral - 02-16-2017 12:40 AM

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


RE: Hangman - Antoska - 02-16-2017 01:04 AM

Very nice. Thx.


RE: Hangman - Catalan_mistral - 02-16-2017 01:20 AM

YW Smile


RE: Hangman - darksun84 - 02-16-2017 02:15 AM

Small typo in line 275 i think

Code:
IF (!STRMATCH(*<ARGS>*, <Tag.Hangman.Word>))
    Tag.Hangman.Tries -+ 1 //Should be -=



RE: Hangman - Catalan_mistral - 02-16-2017 05:12 AM

Changed. still worked but happy to update my knowledge , and use updated scripting practice Smile


RE: Hangman - Catalan_mistral - 02-16-2017 06:46 AM

Just found a small bug, if you've already downloaded, change word count in the names section to 83.


RE: Hangman - xwerswoodx - 02-16-2017 02:59 PM

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.


RE: Hangman - Catalan_mistral - 02-17-2017 12:11 AM

Updated ty xwerswoodx, much appreciated any input to improving skills and the script are always welcome.