# zappy77

Member Since 08 Feb 2007
Offline Last Active Jun 02 2013 09:52 AM

### More Math!

20 February 2009 - 09:37 PM

I have seen allot of math topics lately, okay not that much I think it was 2 XD Anyway recently I have done some "advanced math" in school and came up with the following formulas. All arguments and returns are commented in the scripts.

oddeven()
The first one checks to see weither the input number is even or odd. The scripts name should be oddeven to make the next script work.

//argument0 = Number to check
//Returns:
//       0 = Odd
//       1 = Even
if argument0 mod 2 = 0
return 1;
else
return 0;

As you can see, it returns 0 for an odd number and 1 for an even number.

is_prime()
This one checks weither the input number is a prime number or not. I called this script is_prime.
Note: This scripts will not work if the above script is not called oddeven

//argument0 = Number to check
//Returns:
//       0 = Not prime
//       1 = Prime

if argument0 = 2
return true;

if oddeven(argument0) = 1
return false;

for (i = 3; i*i <= argument0; i += 2)
{if (argument0 mod i == 0)
return false;}
return true;

root()
This script is basic, but yea, in GM you have a function called sqrt() which is 2root, but what would happen if for some reason you wanted to use 3root? or 4root?
You would use this script, called root.

//argument0 = The number that should be rooted
//argument1 = The number with what argument0 should be rooted with.
//Returns: The number after the nroot.
return power(argument0,1/argument1);

add_percentage()
Congratulations! Your Maximum HP has increased by 10 percent!
How would you do this? Yep you would use an easy formula n * (100 +%) / 100

//argument0 = The number to add the % to.
//argument1 = The percentage to add.
//Returns: An amount with a givin amount of %.
n = argument0
p = argument1

return n * (100 + p) / 100;

subtract_percentage()
You have not been working good, I am cutting your salary with 10%!

//argument0 = The number to remove the % to.
//argument1 = The percentage to remove.
//Returns: An amount subtracted with a givin amount of %.
n = argument0
p = argument1

return n * (100 - p) / 100;

divisible()
Is 2452987265 divisible by 7?
Why you would want to know this information I have no clue XD
BUT according to my script, no its not

//argument0 = Number that should be divided.
//argument1 = Number to divide with.
//Returns: Weither the number is divisible or not.
if argument0 mod argument1 = 0
return true;
else
return false;

Well thats all from me
Maby one or two scripts could help someone, don't know.
Best of luck with your projects.
-zappy

### Huge Rpg In The Making!

04 February 2009 - 09:14 PM

Okay so heres the thing, I got a nice storyline for a RPG, I have created over 50 different formulas that will be used in a RPG game, that includes attacking, stealing, spells etc.

The game has unique aspects and is allot of work.
Here are the requirements:

Programmers:
• Experienced
• Must know GML fluently
• Must be able to think logically to solve problems.
When applying for programmer please tell me what you would want to work on, you may choose more than one:
Toolset (Level creators etc.)
Engine (Dialog, inventory, motion etc.)
Story (What happens when, program the game based on the storyline.)
Scenes (A nice 3D scene to make it more unique. Needs 3D experience.)

Pixel Artists:
• Must be able to make realistic...ish sprites.
• Must be able to do both simple and complex sprites.
• Preferably be able to animate.
When applying for pixel artist please tell me what you would want to work on, you may choose more than one:
NPC's
Main characters
Story based items
Monsters
Items
Weapons
Town stuff
Other

Composers:

• Must be able to make sound effects or music. (Please specify)
• Should you make sound effects it should sound realistic
• Should you make music, you should be able to make it fit with the theme and preferable know how to use most of the instruments for it.
Designers:
• Either design rooms/characters/items/weapons/story or more than one, but you must have a creative mind.
Game mechanics:
• Be the one designing the game mechanics, that includes battle formulas, level up, damage calculation etc. (Note: Most game mechanics are completed for battling, but I might still need a few more.)
Photoshop Artist:
• Must own any version of Adobe photoshop, or any other photo manipulation software that includes making text effects.
• Must be skilled in creating text effects, backgrounds or textures.
• Must be able to think origional.
pm me for more information.

Current Team Members: (1)
Zappy77 (Programmer, Designer, Game mechanics, Photoshop artist)

The 5 keywords of the game is: Dragons, psi, magic, summoning, adventure!

More about the game:
This is a topdown game.
It uses 3D for some of its scenes to make it look pretty.
Has a unique battle engine.
Has minigames.
The name of the game is "Winding Darkness".

Please note I cannot make sprites to save my life, but I have included some screenshots.

A 3D scene of space.
Some planets and stars
The name shown in the cutscene

Text effect showing some places names.
Allansgrove
Titan Wood

Dialog.
[1]
[2]
[3]

### Little Idea I Have...

28 December 2008 - 02:30 PM

Okay so I have got this idea, but I want to know what people think of it first.

So I got my program, its like a console for windows, or a runner if you will.
It runs a game, but has a twist.
In the game you can give the players rewards, along with score and points.

The rewards are kinda like achievements you made in the game. You show your achievements and you show off.
Score is sent to an online server which will add online scoreboard for each game.
Points are used to buy stuff, wheither its new games, wallpapers, music, cheats whatever.
The more points you get the more you can get.
Now all of this will go to my program which will manage everything so the game creators don`t have to do much extra work.

Everything is stored in a profile(Name, score, points etc.) you created which is encrypted.
The program decrypts it and does with it what it needs to.

For developers there will be functions designed to work with this program (I already made some)
So if you are a developer supporting the project, you can have rewards, online score etc. without much work.

So basically it is a runs games which adds some extra stuff to a game that is normally allot of work, but it won`t effect the game since an externall program handles it.

Thats just a quick summary, if nobody understands I will explain it in more depth, but I just want to know what people think about it.

### Gm "sdk" Part 1:

16 November 2008 - 01:24 PM

For a while now I have been working on a bunch of functions that can help creators code faster.
There are simply to many functions for me to create all of them at once, so I create them in parts, the first part is the mouse.

It adds functions and variables.

Everything you need to know is in the extensions help file, so make sure you read it!
Simply install it, go to help, extension packages, and then mouse extention (I know, I spelt it wrong when I built it, then noticed when I uploaded it) So please excuse, I was in a big rush, so there are ALLOT of spelling mistakes in the help file, don`t worry il fix it later.

The extension is very small and adds allot compared to its size.

Also READ THE FAQ!

Here`s the link enjoy

### Login Problems

22 March 2008 - 12:32 PM

Hey I read at the announcements that I should create a topic if I have login problems. Well here I am as soon as I log in it either logs out immediatly or it is logged in for 1 or 2 pages then its logges out.

I cleared the browsers cache and I deleted the cookies, but its still the same thing.
Please help I can barely post. This topic took me 10 minutes to try and post cause I keep logging out.

If anyone can help me or the staff fix this problem please do it.

I am using ie7 btw.

-zappy