public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers
Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Skill user's data
  • Original author: Fonstw
  • Original date: July 2, 2015
  • Source thread: https://forums.rpgmakerweb.com/threads/skill-users-data.41850/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support

Summary

Hello RPG Maker community! I am trying to get a skill to cost equal to the caster's level times 5. The effect of the skill will be, to heal the ally's HP equal to the caster's level times 10. I tried using the damage formula like so: a.mp >= a.level * 5 ? a.mp -= a.level * 5 && b.hp += a.level * 10 : 0 But that healed 0, and used up ALL the MP!

Archived First Post

Hello RPG Maker community!

I am trying to get a skill to cost equal to the caster's level times 5. The effect of the skill will be, to heal the ally's HP equal to the caster's level times 10.

I tried using the damage formula like so:

a.mp >= a.level * 5 ? a.mp -= a.level * 5 && b.hp += a.level * 10 : 0 But that healed 0, and used up ALL the MP!

Then I tried to use Yanfly's Skill Cost Manager, and tried to do this:

<custom cost requirement>user.mp >= user.level * 5</custom cost requirement><custom cost perform>user.mp -= user.level * 5</custom cost perform>User refers to the Scene_Skill script, standard included in RPG VX Ace:

#-------------------------------------------------------------------------- # * Get Skill's User #-------------------------------------------------------------------------- def user @actor endAll I get is the following error message (before I even selected the skill itself):

Protected download

I understand that "user" does not exist in the current context (when showing the skill in the skill-menu, in-battle)

Although, I really don't know what else to use.

Yes, I am new to Ruby and scripting in RPG Maker, but not to programming with other languages.

If anyone could help me out, that would be much appreciated!

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

Untitled.png
Untitled.png
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#rgss-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar