The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

I need help

General help and troubleshooting.
Post Reply
Carter
Posts: 67
Joined: Thu Sep 25, 2014 9:20 pm

I need help

Post by Carter » Sat Dec 27, 2014 10:58 pm

Can somebody help me, I need to make a new script for the secret in the point lookout aviary without the quest so I can put a secret in my own world. I have a simpler version of what i am doing but i am not very satisfied with it and I would like to make it more like the one in point lookout because it is way better than mine. I am okay with scripting but I have to link so many objects together that I just don't know what I am doing wrong.


 


I also want to make a radio that you can drop and then click on and have a menu open up and click on either turn on radio or pick up radio


 


I am also making a light switch and need help with the scripting on it




scn MyModChemistrySetScript01


 


short Button


float timer


short destroyed


 


begin OnActivate


 


if IsActionRef player


ShowMessage GSChemistrySetMsg


endif


 


end


 


BEGIN MenuMode 1001


 


set Button to GetButtonPressed


 


if ( Button == 1 )


player.AddItem Stimpak 5


SetDestroyed 1


elseif ( Button == 2 )


player.AddItem Psycho 1


player.AddItem Buffout 1


player.AddItem Mentats 1


player.AddItem NVSteadyChem 1


player.AddItem NVReboundChem 1


SetDestroyed 1


endif


 


If Destroyed == 1


set timer to 3


endif


 


if timer == 0


set destroyed to 0


endif


 


END


 


You do not have the required permissions to view the files attached to this post.

User avatar
RoyBatty
Gary
Posts: 7742
Joined: Sun Apr 27, 2014 10:26 am
Location: Vault 108

scn MyModFuseBoxScript

Post by RoyBatty » Mon Dec 29, 2014 1:27 am


scn MyModFuseBoxScript


 


int togglestate


 


Begin onActivate


 


;ref.playgroup forward


;ref.playgroup backward


 


if togglestate


ref1.disable


set togglestate to 0


else


ref1.enable


set togglestate to 1


endif


 

 



End

Image

User avatar
Puppettron
Gary
Posts: 1715
Joined: Sat Nov 23, 2013 10:47 pm

there is nothing acting on

Post by Puppettron » Tue Dec 30, 2014 6:43 am

there is nothing acting on your variable "timer".  you're just setting it to 3 and then checking if it became 0 later.


you should get familiar with this:  http://geck.bethsoft.com/index.php/Scripting_for_Beginners


perms:  either a full fireworks display spelling out "Puppettron Made This" anytime a user accesses my content in-game, or just give me credit somewhere.

Post Reply