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.

How to make a quest?

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

How to make a quest?

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 npc1-1"chat

] "Angry gardener"


"level_trigger_1" = [ showgui James ]

"level_trigger_%1" = [ rubbish = ( + $rubbish 1) ]

newgui quest [ 
	if (> $rubbish 10) [
	guitext "No, my garden is still dirty." chat
	guitext "Hurry up, or i'll call the police and report you." chat
]
	if (= $rubbish 10) [
	guitext "Well, now my garden look better ." chat
	guitext "But I think there's a strange metal part near the fat tree in my garden." chat
	guitext "Go and picked it up and leave my garden away with your airship." chat
	guibar
	guibutton "Bye."
	]
]

newgui npc1-1 [
	guitext "Seems that you have messed up my garden." chat
	guitext "So help me to clean my garden." chat
	guibar
	guibutton "I have clean it." "showgui quest" chat

	] "James"

on this is my code....
Anyone can help me & teach me how can i set up a quest inside game...
the quest code:

Code: Select all

newgui quest [ 
	if (> $rubbish 10) [
	guitext "No, my garden is still dirty." chat
	guitext "Hurry up, or i'll call the police and report you." chat
]
	if (= $rubbish 10) [
	guitext "Well, now my garden look better ." chat
	guitext "But I think there's a strange metal part near the fat tree in my garden." chat
	guitext "Go and picked it up and leave my garden away with your airship." chat
	guibar
	guibutton "Bye."
	]
]
what wrong in the code???
Last edited by arcones on June 8th, 2010, 9:27 am, edited 1 time in total.
Reason: Quick edit. Makes it easier to read.
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Hw to make a quest?

Post by arcones »

Code: Select all

"level_trigger_%1" = [ rubbish = ( + $rubbish 1) ] //Here's what is wrong. You can't place a % before the number. It won't recognize it

That's your problem I believe.

Arcones :geek:
Image
Want a user bar like this one? PM Leo!
xnevilnx07
Member
Member
Posts: 12
Joined: June 1st, 2010, 8:13 am
Name: law

Re: How to make a quest?

Post by xnevilnx07 »

So i need to change it like this >>>"level_trigger_1%" = [ rubbish = ( + $rubbish 1) ] is it correct now???
User avatar
Venima
Support Team
Support Team
Posts: 259
Joined: February 17th, 2010, 4:56 am
Name: Tombstone
IRC Username: Venima
Location: Somewhere in the eternal planes between the living and the dead

Re: How to make a quest?

Post by Venima »

no...

Code: Select all

level_trigger_1 = [rubbish = (+ $rubbish 1)]
You can check this page in the future to make sure your code is correct: List of scripting commands

Alternatively if you want constant feedback, you can try out my CFG editor (links in my signature). It doesn't have all the scripting commands, it knows a considerable number of them.
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament

Try out my: CFG Easy Text Editor (Note: still in beta)

-----Venima
Image
Image
xnevilnx07
Member
Member
Posts: 12
Joined: June 1st, 2010, 8:13 am
Name: law

Re: How to make a quest?

Post by xnevilnx07 »

I changed the code now.thxz
Did the quest code correct???
Locked