Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Mr_Threepwood

#81
General Discussion / rar files
Mon 28/06/2004 16:26:51
how do i extract these babies?  I looked around for a rar extractor but winrar, winace, and winzip have to be purchased, and I dont wanna pay for extracting a couple of files, so what do i do to extract these?
#82
sorry if I am asking a totally noob question, but how do u get those things to work? they are not gui files they are agt files.
#83
Hints & Tips / Re: Maniac Mansion Deluxe
Mon 28/06/2004 06:59:07
i have a question, does maniac mansion delux have a lot of glitches in it for u guys?  When i was playing it wouldnt let me use the paint remover on that wall, and then it crashed saying it has an error in like 276 or something.  Is there a way to fix this?
#84
I searched around this site and did a glance over on general ags fan sites, trying to find a template for a lucasarts gui, since the coding looks too advanced for me to figure out at the moment.  Unfourtunitly all the links are dead so i cant find a template, does anyone know of a working link where i can get a working lucasarts template?
#85
I think its a great thing to do with friends, me and my friends are working on a game and weve got a good team, a programmer (me, but im new and learning), and artist, and a writer/ semiprogrammer.  Its fun to go over to their house and work on making a game, and it helps prepare for a future in programming.
#86
problem is now solved, thanks a lot to all that helped me solve this.  In case anyone else is wondering how to do this here is what i put in my scripts:

Dialog script
Code: ags

// dialog script file
@S  // dialog startup entry point
run-script 77
return
@1  // option 1
VENDOR: "Hmm lemme see that, ok sure you can have a hotdog but you have to give me the poster"
stop
@2  // option 2
VENDOR: "Have a nice day."
stop


in global script
Code: ags

function dialog_request(int parameter){//for dialog scripts to add options and other things
	if (parameter == 77){//if requested script is 77
		if (character[EGO].inv[3]){//if main character has 1 or more of inv item number 3 (hot dog poster in this case)
					  SetDialogOption(1,1,1);
					  }

	  }
  
}
#87
Blah forgot to logon so now this is second time typing this.

I did exactly what strazer said to do in the dialog script, and in the global script i did this:

Code: ags

function dialog_request(int paramater){
	if (parameter== 77) {

		if (character[EGO].inv[2]){
		SetDialogOption(1, 1, 1);Ã,  Ã, 
		}
	}
}


and the error i get when i try to run this is "nested functions not supported (you may have forgotten a closing brace)".Ã,  I am fairly sure that I did not forget a closing brace, i placed the global script right before the last closing brace in the code.Ã,  Any ideas how i can fix this so that i can have my dialog turn on if the character has a certain item?

/edit
heres a simple question: does putting if (character[EGO].inv[2]) vs if (character[EGO].inv[2]==1) make any difference? will the second one make it so that the character must only have 1 of the item for the script to work, and if the play has more then 1 it will not be executed?
#88
Sorry about the script, I couldnt figure out how to make it appear as script, i clicked on additional options and it said the shortcut was the # key, but that didnt work, and i cant find how or if you can edit the original post so i had to repost.
#89
Hello, I am new to these forums aswell as to adventure game studio.  I have been working through the begginers tutorials and I have come across a problem that I cant seem to find the answer to.  It seems that I cant put an "if" statement in dialog script, which i want because i want to have a dialog option hidden until the character has a certain inventory item, in my case it the item is inventury item #3.  I put this in the dialog:

#
// dialog script file
@S  // dialog startup entry point
if (player.inv[3]==1){
  option-on 1
  }
return
@1  // option 1
VENDOR: "Hmm lemme see that, ok sure you can have a hotdog but you have to give me the poster"
stop
@2  // option 2
VENDOR: "Have a nice day."
stop

the only problem is that if statements do not work in dialog script, so i can not run the game with this is.  So how do you make it check for an inventory item and then show a dialog option if the item is present?
SMF spam blocked by CleanTalk