Page 1 of 1

Why am I getting an error on 11 and 12?

Posted: Thu Sep 13, 2012 8:54 am
by Tdarcos
I have

Code: Select all

verb "go"
	* "11"/"12"/"13"/"14"/"15"/"16"/"17"/"18"/"19"											DoGoCube
	* "21"/"22"/"23"/"24"/"25"/"26"/"27"/"28"/"29"											DoGoCube
	* "31"/"32"/"33"/"34"/"35"/"36"/"37"/"38"/"39" 											DoGoCube
	* "to"/"into" "21"/"22"/"23"/"24"/"25"/"26"/"27"/"28"/"29"								DoGoCube
	* "to"/"into" "31"/"32"/"33"/"34"/"35"/"36"/"37"/"38"/"39" 								DoGoCube
	* "to"/"into" "11"/"12"/"13"/"14"/"15"/"16"/"17"/"18"/"19"								DoGoCube
So that in a certain area they can select a square number. Which works okay for 13-19, 21-29, 31-39 but does not work for 11 and 12.
Transcript:

>go 19
DoGoCube executed
object is 0 xobject is 0
Using word 19

>go 13
DoGoCube executed
object is 0 xobject is 0
Using word 13

>go 12
You haven't encountered anything like that.

>go 11
You haven't encountered anything like that.

>go 21
DoGoCube executed
object is 0 xobject is 0
Using word 21

>go 31
DoGoCube executed
object is 0 xobject is 0
Using word 31

>go 39
DoGoCube executed
object is 0 xobject is 0
Using word 39

>go 10
You haven't encountered anything like that.

>go 9
That doesn't make any sense.

>go 1
You haven't encountered anything like that.

Note that I haven't defined 10 or 1.

Posted: Thu Sep 13, 2012 9:28 am
by Tdarcos
I found the problem. In order to give the breakers numbers to trip, I numbered them

Code: Select all

object breaker_stove "stove"
{
	in fusebox
	article "a"
	adjectives "stove","10"
	is static,  switchedon, hidden, breaker
	Darkens nothing
}

object breaker_microwave "microwave"
{
	in fusebox
	article "a"
	adjectives "microwave","11"
	is static,   switchedon, hidden, breaker
	Darkens nothing
}
object breaker_fridge "refrigerator"
{
	in fusebox
	article "a"
	adjectives "fridge","12","refrigerator"
	is static,  switchedon, hidden, breaker
	Darkens nothing
}
I'm thinking this might be it, having a different object with the same numeric name. Problem is that I added the following:

Code: Select all

verb "go","goto"
	* "11"/"12"/"13"/"14"/"15"/"16"/"17"/"18"/"19"											DoGoCube
	* "21"/"22"/"23"/"24"/"25"/"26"/"27"/"28"/"29"											DoGoCube
	* "31"/"32"/"33"/"34"/"35"/"36"/"37"/"38"/"39" 											DoGoCube
And I get this:

[Transcript]


>go 13
DoGoCube executed
object is 0 xobject is 0
Using word 13

>go 12
You haven't encountered anything like that.

>goto 12
DoGoCube executed
object is 0 xobject is 0
Using word 12

>goto 13
DoGoCube executed
object is 0 xobject is 0
Using word 13

>goto 11
DoGoCube executed
object is 0 xobject is 0
Using word 11

>go 11
You haven't encountered anything like that.

This is damned wierd. I'm going to change the fuse numbers and see if this has an effect.

Posted: Thu Sep 13, 2012 9:32 am
by pinback
What's a "fuse box"?

Posted: Thu Sep 13, 2012 9:45 am
by Tdarcos
Tdarcos wrote:This is damned wierd. I'm going to change the fuse numbers and see if this has an effect.
Yep. I changed the identifiers for the breakers to 60, 61, and 62, now "go 11" and "go 12" work.

Weird the way one definition can interfere with the other.

Posted: Thu Sep 13, 2012 11:51 am
by Ice Cream Jonsey
Is a fuse box similar to circuit breakers?

Posted: Thu Sep 13, 2012 5:19 pm
by Tdarcos

Posted: Thu Sep 13, 2012 5:21 pm
by Tdarcos
Ice Cream Jonsey wrote:Is a fuse box similar to circuit breakers?
JESUS, MARY, MOTHER OF GOD -- NOBODY FUCKING GIVES A SHIT.
- Ice Cream Jonsey, 9/12/12, http://www.joltcountry.com/phpBB2/viewtopic.php?t=8499
[/quote]