Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Serial key system

Brody

Member

can someone tell me when i try to use the following script i get this mesage: Script 'Scene_Serial' line 95: SyntaxError occurred.



Serial Key System - Makes the player have a ‘Serial Key’ before they can play the game!
Insert this as a new class called “Scene_Serialâ€
 
Can you re-post the script in a code box? @_@

Hey, (although I hate 'trial version' stuff), this is kind of a cool concept for a script... I'm going to try to write my own.

*Ahem* Well, it seems that alot of the errors are that the author uses is he puts two commas like '' and '', then uses them like quotes which are " and ". Can you tell the difference? Probably not to the naked eye, but you can in the script editor.

If you change the two commas into quotes, then the text will become violet in the script editor instead of being black or whatever. I've tested and fixed a couple more bugs in the script, but overall I'm not going to fix it all unless you re-post it in a code box, because indentation helps alot.

I also see he uses alot of weird calls like

draw_text(4, 40+4, 600, 40, "Whatever")

For one, I don't know why it's 40 + 4 instead of just 44? (meanwhile, where the part where it is y + 4 would actually make a little more logical sense, because he's adding 4 to a current 'y' value, but I'm not sure how this is used in this script yet.)

This has inspired me to write my own Scene_Activation script from scratch, which I just started on now. However, if you re-post this one I'll try and fix it for learning sake (because I probably won't finish mine.) I can try and debug it for you if its indented, because I'm sure there's alot more errors.
 
Kain, the code tags won't help. The original is not indented.  If he takes the time to indent it, you'll notice that there is a chunk of code missing.  Better to just post a link to where he got the script in the first place.

However, if you're going to rewrite it, even better yet.

Be Well

Hint for the future:  If someone forgets the code tags, you can see / copy / paste the original text by hitting "Quote", copy the text, then hit Cancel if you aren't replying.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top