Bug on a script
#6
You know sometimes reading the instructions helps...

Quote:# Passive skills can also be used to equip weapons and armors, and to be able to use skills.
# Configure it like that :
#
# When [weapon/armor id] then return [passive skill id]
# When [skill id] then return [passive skill id]
#
# Note that passive skills overwrite class restrictions : if a warrior gets a "Equip Staffs"
# passive ability, he will be able to equip staffs.
#
# On a sad note, all weapons/armors need to be set to a skill in order to be equipped.
# If you put "nil" or "0", the game will crash.
# So set a skill for each different weapon or armor. Default is 100
# The same applies for skills. Skills won't crash, but won't be able to be used. Which is bad.
# However if you put "when skill X then return skill X", the skill will be usable if you have it, which
# means you won't have to learn another passive skill.

Do you see this piece of code in the script?

Code:
def self.req_skill(id)
    case id
      # START Skill Configuration
      when 8 then return 101
    end
    return
  end

You should put all the "dependencies" here, like this:

Code:
def self.req_skill(id)
    case id
      # START Skill Configuration
      when 8 then return 101
      when 1 then return 1 # Heal requires Heal
      when 2 then return 2 # Greater Heal requires Greater Heal
      when 3 then return 2 # Mass Heal requires Greater Heal
    end
    return
  end

However, I suggest to change it a little bit:

Code:
def self.req_skill(id)
    case id
      # START Skill Configuration
      when 8 then return 101
      when 1 then return 1 # Heal requires Heal
      when 2 then return 2 # Greater Heal requires Greater Heal
      when 3 then return 2 # Mass Heal requires Greater Heal
    end
    return id
  end

See the "return id" line? Now the default behavior is that a skill only needs itself to be learned in order to be used.

And if you don't need this feature at all, change it like this:

Code:
def self.req_skill(id)
    return id
  end
Reply }


Messages In This Thread
Bug on a script - by fgsfds - 12-11-2009, 06:42 AM
Bug on a script - by PK8 - 12-11-2009, 07:47 AM
Bug on a script - by fgsfds - 12-11-2009, 09:28 AM
Bug on a script - by PK8 - 12-11-2009, 12:14 PM
Bug on a script - by fgsfds - 12-11-2009, 12:53 PM
Bug on a script - by Charlie Fleed - 12-11-2009, 12:55 PM
Bug on a script - by fgsfds - 12-11-2009, 01:29 PM
Bug on a script - by Charlie Fleed - 12-11-2009, 04:06 PM
Bug on a script - by fgsfds - 12-11-2009, 04:42 PM
Bug on a script - by Charlie Fleed - 12-11-2009, 05:22 PM
Bug on a script - by fgsfds - 12-11-2009, 06:20 PM
Bug on a script - by fgsfds - 12-15-2009, 03:46 PM
Bug on a script - by Charlie Fleed - 12-16-2009, 04:21 PM
Bug on a script - by fgsfds - 12-16-2009, 07:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 2 64 11-20-2024, 03:09 AM
Last Post: JayRay
   Script compatibility help Lord Vectra 3 4,605 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 15,854 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 16,170 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 16,448 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 8,534 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 10,216 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 9,858 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 8,640 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 7,248 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets



Users browsing this thread: 3 Guest(s)