Script

Post » Sat Mar 20, 2010 9:36 am

alright so I have no idea how to script, I know basic computer programming but very little, so if anyone could tell me how to do this:

character presses a switch that brings up a menu and you chose a book(i.e. Grognak, Guns and Bullets, or Big Book of Science) to be made, after chosing one it will tell you to have 150 caps, and 5 burnt or destroyed (any book you find other than another usable book) books, and press ok, and out pops a book.
User avatar
Roberto Gaeta
 
Posts: 3451
Joined: Tue Nov 06, 2007 2:23 am

Post » Sat Mar 20, 2010 6:52 pm

I won't wrtite it for you, but you are going to need to use these commands:

http://geck.gamesas.com/index.php/ShowMessage
http://geck.gamesas.com/index.php/GetButtonPressed
http://geck.gamesas.com/index.php/GetItemCount

And you'll need both an OnActivate block and a GameMode block.
User avatar
Gemma Flanagan
 
Posts: 3432
Joined: Sun Aug 13, 2006 6:34 pm

Post » Sat Mar 20, 2010 3:44 pm

The 'Begin' blocks of code:
http://geck.gamesas.com/index.php/Begin
User avatar
Ezekiel Macallister
 
Posts: 3493
Joined: Fri Jun 22, 2007 12:08 pm

Post » Sat Mar 20, 2010 10:06 am

im still lost with most of this
User avatar
Lexy Corpsey
 
Posts: 3448
Joined: Tue Jun 27, 2006 12:39 am

Post » Sat Mar 20, 2010 8:12 pm

Iv gotten this far
scn NHBook-O-Maticbegin OnActivate	Show Message BookOMatic	set awaitingInput to 1endbegin Gememode	If awaiting input == 1		set buttonVar to GetButtonPressed				If buttonVar > -1			set awaitingInput to 0						if buttonVar == 0			elseif buttonVar == 1			elseif buttonVar == 2			elseif buttonVar == 3			elseif buttonVar == 4			elseif buttonVar == 5			elseif buttonVar == 6			elseif buttonVar == 7 


so how do I get each one to make a book, and choice 7 is meant to lead to a new box (next) and how do I do that
User avatar
Adam
 
Posts: 3446
Joined: Sat Jun 02, 2007 2:56 pm

Post » Sat Mar 20, 2010 10:34 pm

You will use http://geck.gamesas.com/index.php/GetItemCount to make sure the player has the correct items BEFORE allowing them to the menu.

You will use http://geck.gamesas.com/index.php/RemoveItem to remove the objects to make the book from the player.

You will use http://geck.gamesas.com/index.php/AddItem to add the new book to the player.
User avatar
keri seymour
 
Posts: 3361
Joined: Thu Oct 19, 2006 4:09 am

Post » Sat Mar 20, 2010 6:48 pm

allright that help alittle
User avatar
Katie Pollard
 
Posts: 3460
Joined: Thu Nov 09, 2006 11:23 pm


Return to Fallout 3