Hi!
Just trying to figure out why the script calls I'm trying to use doesn't work. I use them in sync with Mr.bubble skillshop script and they are taken from Game_Actor. I have been able to use these before, but I just can't get them to work anymore.
The script calls are taken from Game_Actor and are the following:
Forget skills:
@skills.delete(52) (Should remove skill with ID 52, once the new skill has been bought).
Determine if skill is learned?
skill_learn?($data_skills[52) (Should check if skill ID 52 is already learned and determine if the new upgraded skill can be bought).
I can get all of my other script calls to work except these two. Removing items, checking Actor ID's, level etc works just fine.
This is the complete note for my skill:
<no_log>
<buy gold cost:1000>
<buy custom text>
string: Wiola
icon: 10073
</buy custom text>
<buy custom text>
string: 1x Hevit Statue.
icon: 10058
</buy custom text>
<buy custom text>
string: Actor Level 11
</buy custom text>
<buy custom text>
string: Skill:H-Hands
icon: 9040
</buy custom text>
<buy custom require>
$game_party.item_number($data_items[56]) >= 1
!break
level >= 11
!break
self.class.id == 7
!break
skill_learn?($data_skills[32])
</buy custom require>
<buy custom cost>
$game_party.lose_item($data_items[56], 1)
!break
@skills.delete(32)
</buy custom cost>
Everything in that note works fine except that skill 32 should be removed and replaced with the new skill, and the script doesn't determine if skill 32 has been learned as a requirement to buy the skill.
Anyone that can figure out what's wrong?
I can't seem to find the script on the web anymore, so cant provide a link to it Oo
Best Regards
~Dark
Just trying to figure out why the script calls I'm trying to use doesn't work. I use them in sync with Mr.bubble skillshop script and they are taken from Game_Actor. I have been able to use these before, but I just can't get them to work anymore.
The script calls are taken from Game_Actor and are the following:
Forget skills:
@skills.delete(52) (Should remove skill with ID 52, once the new skill has been bought).
Determine if skill is learned?
skill_learn?($data_skills[52) (Should check if skill ID 52 is already learned and determine if the new upgraded skill can be bought).
I can get all of my other script calls to work except these two. Removing items, checking Actor ID's, level etc works just fine.
This is the complete note for my skill:
<no_log>
<buy gold cost:1000>
<buy custom text>
string: Wiola
icon: 10073
</buy custom text>
<buy custom text>
string: 1x Hevit Statue.
icon: 10058
</buy custom text>
<buy custom text>
string: Actor Level 11
</buy custom text>
<buy custom text>
string: Skill:H-Hands
icon: 9040
</buy custom text>
<buy custom require>
$game_party.item_number($data_items[56]) >= 1
!break
level >= 11
!break
self.class.id == 7
!break
skill_learn?($data_skills[32])
</buy custom require>
<buy custom cost>
$game_party.lose_item($data_items[56], 1)
!break
@skills.delete(32)
</buy custom cost>
Everything in that note works fine except that skill 32 should be removed and replaced with the new skill, and the script doesn't determine if skill 32 has been learned as a requirement to buy the skill.
Anyone that can figure out what's wrong?
I can't seem to find the script on the web anymore, so cant provide a link to it Oo
Best Regards
~Dark