Skill Help...

Discussion in 'Javascript/Plugin Support' started by Elliott404, Nov 13, 2018.

Thread Status:
Not open for further replies.
    Tags:
  1. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,501
    Likes Received:
    948
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    @Elliot404 Just copy/paste the Javascript code between the <Before Eval> tags - those tags are just saying when the Javascript starts and ends, but the tags themselves aren't Javascript.
     
    #41
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,114
    Likes Received:
    6,368
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    you still have one too many } in your notetag - you need to find the notetag that went wrong and remove the added } from it.
    That is why you get an "unexpected token }" error again and again.
    I don't know if it is the first or the sixth that needs to be removed, but that is the error message you're getting at the moment
    sixclosing.png

    just count the numbers I marked and you'll see that
     
    #42
  3. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    426
    Likes Received:
    1,008
    First Language:
    English
    Primarily Uses:
    RMMV
    uh. . This is what I got:
    rghndf.png
     
    #43
  4. Andar

    Andar Veteran Veteran

    Messages:
    28,114
    Likes Received:
    6,368
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    @Elliot404 have you read my post above where I told you the second time to remove the wrong closing bracket before continuing testing?
     
    #44
    Fornoreason1000 likes this.
  5. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    426
    Likes Received:
    1,008
    First Language:
    English
    Primarily Uses:
    RMMV
    I don't know what exactly I did but, the skill itself worked but not its effect didn't.

    I removed the before oval both sides, and one of the }. The unexpected error stopped showing. Thank you, and sorry for the trouble.
     
    #45
  6. Fornoreason1000

    Fornoreason1000 Black Sheep Veteran

    Messages:
    199
    Likes Received:
    92
    Location:
    Anor Londo
    First Language:
    English
    Primarily Uses:
    RMMV
    the code you posted earlier post in that
    Code:
    code block
    didn't have the } above
    Code:
    this._absorbHeal += heal;
    incase none picked that up.
    you are also missing a semi colon
    Code:
    var id = absorbedStates[j]; //Javascript is forgiving enough though
    Glad you go it working nonetheless :ahappy:
     
    #46
  7. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    426
    Likes Received:
    1,008
    First Language:
    English
    Primarily Uses:
    RMMV
    @Andar + @Aloe Guvner
    Thank you, and sorry for all the trouble.

    @Fornoreason1000
    Thank you.


    but, I think I should do something with user.mdf code. Should I replace it with a number or should I just leave it as it is?
     
    #47
    Fornoreason1000 likes this.
  8. Fornoreason1000

    Fornoreason1000 Black Sheep Veteran

    Messages:
    199
    Likes Received:
    92
    Location:
    Anor Londo
    First Language:
    English
    Primarily Uses:
    RMMV
    That is entirely up to you, this is your game.
    if you feel that Magic Defense (that's what user.mdf is, btw)should be replaced by a unchanging constant Number for this skills calculation to help balance out your game more I think you can make and should make that decision on your own.

    We can give you advice, but you are the only one that really knows whats going on with your game.
     
    Last edited: Dec 29, 2018
    #48
  9. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    426
    Likes Received:
    1,008
    First Language:
    English
    Primarily Uses:
    RMMV
    @Fornoreason1000
    No, sorry I don't mean to sound like that. Since I'm not expert in coding, I just wanted to know whether I should replace it with a number however I set it, or something else.
     
    #49
  10. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,331
    Likes Received:
    10,397
    First Language:
    English
    Primarily Uses:
    RMVXA

    Closed at the request of the OP. If you want the thread reopening please Report this post and leave the reason why.

     
    #50
Thread Status:
Not open for further replies.

Share This Page