Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Where is wrong?

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
xnevilnx07
Member
Member
Posts: 12
Joined: June 1st, 2010, 8:13 am
Name: law

Where is wrong?

Post by xnevilnx07 »

Code: Select all

rubbish = 0
movespeed 100
newgui main [
	guilist [
		guilist [
			guibutton "Quest information" "showgui quests"
			guibutton "Inventory" "showgui inventory"
		]
		guibar
		guilist [
			guibutton "About" "showgui About"

		]
	]
	guibar
	@main
]

newgui inventory [
	guibutton "Back" "cleargui 1"
	guibar
	guitext (format "You currently carry %1 rubbish" (+ $rubbish ))
	
]
newgui James [
 guitext "Oh My Goodness!" chat
 guitext "Who are you and where are you from?" chat
 guitext "What is that? It crashed and messed up my garden." chat
 guitext "You must be responsible on it." chat
 guibar
 guibutton "What should for you?" "showgui quest1" chat

] "Angry gardener"

newgui quest1 [
   if (= $rubbish 10) [
      guitext "How many rubbish you have collected?" chat
      guitext (format "You have %1 rubbish." $rubbish)
      guibar
      guilist [
         guibutton "10 rubbish." [
            grubbish = 10
            grubbish = (rnd 10)
            rubbish = (- $rubbish 2)
            showgui npc1-1
         ] chat
]
 ]
]

"level_trigger_1" = [ showgui James ]

"level_trigger_2" = [ rubbish = ( + $rubbish 1)
 ]

"level_trigger_3" = [ rubbish = ( + $rubbish 1) 
]

"level_trigger_4" = [ rubbish = ( + $rubbish 1)
 ]

"level_trigger_6" = [ rubbish = ( + $rubbish 1) 
]

"level_trigger_7" = [ rubbish = ( + $rubbish 1) 
]

"level_trigger_8" = [ rubbish = ( + $rubbish 1) 
]

"level_trigger_9" = [ rubbish = ( + $rubbish 1) 
]

"level_trigger_10" = [ rubbish = ( + $rubbish 1) 
]

"level_trigger_11" = [ rubbish = ( + $rubbish 1) 
]

"level_trigger_12" = [ rubbish = ( + $rubbish 1)  
]

newgui npc1-1 [
	guitext "Seems that you have messed up my garden." chat
	guitext "So help me to clean my garden." chat
	guitext "When you finish collect 10 rubbish." chat
	guitext "Go to the big tree there and leave here" chat
	guibar
	guibutton "I will clean it and leave." "cleargui" chat

	] "James"

"level_trigger_20" = [echo"..."; endsp; sleep 1000 [map floody]]
i cant setup the quest...i change the quest gui many time already...but still cant where is the bug???
someone please help me tomorrow expired date.ToT
Last edited by arcones on June 10th, 2010, 10:09 am, edited 1 time in total.
Reason: Easier to read. Next time, please use the code function. Thanks.
Locked