Korodic Posted June 15, 2011 Author Share Posted June 15, 2011 Where is this script, in the terminal? It's endif not end if. It looks like you are ending the game block inside the conditional block Get Geck Powerup (on the nexus). I'd link you but im on my phonesorry, yes I am on the terminal. I didn't even notice that. I will fix and test. Link to comment Share on other sites More sharing options...
Korodic Posted June 15, 2011 Author Share Posted June 15, 2011 (edited) I discovered that it says caps001 isn't a recognized object ID for the characters own caps (it refers to the object in general, in the misc section of the geck...) 0000000F refer's to the players own caps. Edited June 15, 2011 by Skibblets Link to comment Share on other sites More sharing options...
Korodic Posted June 15, 2011 Author Share Posted June 15, 2011 (edited) EDIT: Nevermind. I got it to work. Here is the solution for the curious... ---------int watchvariableset watchvariable to 0 ;meaning no requirements have been met if (player.GetitemCount 0000000F > 25) ;Capsset watchvariable to 1endif if (player.GetitemCount jdPassCardBluex1FREEResetArmory >= 1) ;Free passset watchvariable to 2endif if (player.GetitemCount jdPassCardRedPermFreeReset == 1) ;Infinite free passset watchvariable to 3 ;so the watchvariable won't exit due to 0 var.endif if (watchvariable==1)player.RemoveItem 0000000F 25endif if (watchvariable==2)player.RemoveItem jdPassCardBluex1FREEResetArmory 1endif if (watchvariable>0) ;Spawns monstersL1C1.ResurrectL1C2.ResurrectL1C3.Resurrectendif Edited June 15, 2011 by Skibblets Link to comment Share on other sites More sharing options...
amullinix Posted June 15, 2011 Share Posted June 15, 2011 Things like this should be added to the Nexus wiki. It's a very specific code, for a specific set of variables, but other people just starting out with scripting can garner structure and flow from things like this. Also, others can use the processes as a template for other actions they are trying to script. At the moment I am unable to do so (posting using my phone) and will be unable until my move is completed. I hope somebody reads this and takes it upon themselves to convert it (possibly the OP since they would be able to explain the purpose and structure of the specific code). Link to comment Share on other sites More sharing options...
Korodic Posted June 16, 2011 Author Share Posted June 16, 2011 Things like this should be added to the Nexus wiki. It's a very specific code, for a specific set of variables, but other people just starting out with scripting can garner structure and flow from things like this. Also, others can use the processes as a template for other actions they are trying to script. At the moment I am unable to do so (posting using my phone) and will be unable until my move is completed. I hope somebody reads this and takes it upon themselves to convert it (possibly the OP since they would be able to explain the purpose and structure of the specific code).Well thank you :D I was lucky enough to have programming classes at my school though, so I do have some common programmer thought process. I mostly just lack the knowledge of syntax/functions in this scripting language. However, I did intend to create a series of tutorials based around the geck in hopes of inspiring others to have an easier time learning it than I did :( Link to comment Share on other sites More sharing options...
Recommended Posts