boomy
Last Activity:
Oct 14, 2019 at 3:21 PM
Joined:
Jan 6, 2013
Messages:
107
Likes Received:
76
Trophy Points:
28
Gender:
Male
Location:
Melbourne, Australia

Share This Page

boomy

Veteran, Male, from Melbourne, Australia

Veteran
boomy was last seen:
Oct 14, 2019 at 3:21 PM
    1. LyonBuster
      LyonBuster
      Eeeey.... your web is down!!!
    2. StevenOlinger
      StevenOlinger
      I'm sorry to bother you but I could use a little help.


      Right now I have my attack command set to change at lvl 26 using this script.


      <Custom Replace Attack>


      if (user.level > 25) {


      id = 18;


      } else {


      id = 0;


      }


      </Custom Replace Attack>


      I would to have it to where the attack command would change under 2 additional requirements.


      At Level 38 I would like for it to be able to use skill ID 22 but only when the actor hp is 25% or below.


      Using the script you help with earlier I wrote something like this


      <Custom Replace Attack>
      if (user.hp <= user.mhp * 0.25)(user.level > 37) {
        id = 22;
      } else {
         if (user.level > 25) {
          id = 18;
        } else {
          id = 0;
      }
      </Custom Replace Attack>


      But as i'm sure you can tell that didn't work.


      Any chance you could help me out with this?
      1. EternalShadow
        EternalShadow
        On line 1 instead of )( put &&
        Apr 6, 2016
      2. StevenOlinger
        StevenOlinger
        That cause a syntax error


        35802.IPB
        Apr 6, 2016
      3. StevenOlinger
        StevenOlinger
        I solved the issue.


        <Custom Replace Attack>


        if (user.hp <= user.mhp * 0.25 && user.level > 37) {


          id = 22;


        } else {


          if (user.level > 25) {


            id = 18;


          } else {


            id = 0;


          }


        }


        </Custom Replace Attack>


        This script here works perfectly for what I'm trying to accomplish. Thanks for the help EternalShadow.


        And I apologize for blowing up your notifications boomy. haha.
        Apr 6, 2016
        2 people like this.
  • Loading...
  • Loading...
  • About

    Gender:
    Male
    Location:
    Melbourne, Australia
    First Language:
    English

    Signature

    My Resource Blog
    Custom and Unique Tilesets and Battle Animations