Jump to content

Need Help With This


Korodic

Recommended Posts

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 phone

sorry, yes I am on the terminal. I didn't even notice that. I will fix and test.

Link to comment
Share on other sites

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 by Skibblets
Link to comment
Share on other sites

EDIT: Nevermind. I got it to work.

 

Here is the solution for the curious...

 

---------

int watchvariable

set watchvariable to 0 ;meaning no requirements have been met

 

if (player.GetitemCount 0000000F > 25) ;Caps

set watchvariable to 1

endif

 

if (player.GetitemCount jdPassCardBluex1FREEResetArmory >= 1) ;Free pass

set watchvariable to 2

endif

 

if (player.GetitemCount jdPassCardRedPermFreeReset == 1) ;Infinite free pass

set watchvariable to 3 ;so the watchvariable won't exit due to 0 var.

endif

 

if (watchvariable==1)

player.RemoveItem 0000000F 25

endif

 

if (watchvariable==2)

player.RemoveItem jdPassCardBluex1FREEResetArmory 1

endif

 

if (watchvariable>0) ;Spawns monsters

L1C1.Resurrect

L1C2.Resurrect

L1C3.Resurrect

endif

Edited by Skibblets
Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...