[Release] First release adding your own functions

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 28, 2009
Messages
9
Reaction score
2
100% credits to me

PHP:
/**
 * MADE BY SACTUALIZE OF SACTUALIZEPROMS
 */
var status = 0;

function start() {
    cm.sendYesNo("Do you want to learn how to add stuff and functions?");
}

function action(mode, type, selection) {
    if (mode < 1) {
        cm.sendOk("I guess you already know how.")
        cm.dispose();
    } else {
        status++;
        if (status == 1)
            cm.sendYesNo("Step #1: Adding stuff.\r\n You add numbers like this: 1+2=3. This is true because the 2nd number after 1 is 3. You may prove this using the Peano Postualates if you wish.\r\n\
Example 2:\r\n 10+10=20. You add the one's place and then the ten's place and so on.\r\n\
Example 3:\r\n 15+6=21 If the sum of the one's place is greater than 10, then you have to 'carry'. You leave the one's place of the new number and add the ten's place of that number to the sum of the ten's place. Repeat while you have digits to add.\r\n\
Do you want to learn how to add functions?");
        else if (status == 2) {
            cm.sendYesNo("Step #2: Adding functions.\r\n Adding functions is very useful in algebra. \r\n\
Example 1: x+2x=3x. If they have like-terms, you may add them. You may not add 1x+1y and make it 2xy.\r\n\
Exmaple 2: x+x^2+2x=3x+x^2. You cannot also add numbers of different powers together.\r\n Are you ready for adding multiple functions?");
        } else if (status == 3)
            cm.sendYesNo("Step #3: Adding f(x) and g(x). \r\n\
Try them as if they were like Step #2. Let f(x) = 2x and let g(x) = x. The sum wouldbe 3x. Remember you cannot combine terms if they aren't like terms.\r\n\n\
Do you want to learn how to integrate functions?");
        else if (status==4)
            cm.sendOk("Step #4: Integration \r\n\n\
Integrating functions may be difficult. It is the opposite of differentiation. In other words you go backwards. There are many techniques you may use to integrate 1-variable functions. They also carry on to multiple variable functions too.\r\n\n\
Because this is a crash course, we will only integrate polynomials.\r\n\
You can add the functions after integrating them seperately. Integral of x^2 is: x^3/3. A general formula for polynomials in the form of ax^b for integration would be a/b * x^(b+1)");
    }
}
 
tested it, doesn't work, from the looks of it, moogra did the first set and you added the last two due to silly errors such as having the } to end the previous option on some of them, and not having them on others. Ex, at "} else if (status == 3)" has no { to open it.
 
tested it, doesn't work, from the looks of it, moogra did the first set and you added the last two due to silly errors such as having the } to end the previous option on some of them, and not having them on others. Ex, at "} else if (status == 3)" has no { to open it.

You don't need those. There aren't errors. Have you even tested?
 
I love how my scripts somehow get random credits added on top

LMFAOOOOOOOOOOOOOOOOOOOOOOO HOLY SHIT!!! I'm sorry, but that's probably the funniest shit I have ever seen on this forum. I have never, to this day, seen someone "release" a script someone else posted to try and help someone. OMG!!! Maybe I should release all of the scripts I've seen watzmename post hahaha. That is gold!:lol:
 
>>>OMG<<< seriously OMG! is this kid seriously Rofl i cant belive he/she release something somewone posted like wow just WOW... k im done :mellow:
 
Status
Not open for further replies.
Back