Turning This Into Common Event?

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,195
First Language
English
Primarily Uses
RMMV
So I'm trying to adapt my learn cost eval into a common event so I can use it in @SomeFire's skill tree system.
<Learn Cost Eval>
user._paramPlus[0] += 5;
user.gainHp(5);
user.forgetSkill(293);
user.refresh();
</Learn Cost Eval>


How would I go about this? I've tried simply copy-pasting the contents (the lines w/ "user") into the common event as a script, which obviously didn't work (didn't really expect it to lol). What's the correct way to do this?
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
856
First Language
English
Primarily Uses
RMMV
You can use the following to collect and use the id of the skill user :

Code:
◆Comment:// Determine if Party is in Battle
◆If:Script:$gameParty.inBattle()
  ◆Comment:// Party in Battle; store 'BattleManager._targetId' into variable
  ◆Control Variables:#0049 ActorID = BattleManager._action._subjectActorId + 1
  ◆
:Else
  ◆Comment:// Party is on Map; store '$gameParty._targetActorId' into variable
  ◆Control Variables:#0049 ActorID = $gameParty._targetActorId
  ◆
:End
◆Comment:// Change HP (+5)
◆Change HP:{ActorID}, + 5
◆Comment:// Forget Skill
◆Change Skill:{ActorID}, - Test Skill
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,195
First Language
English
Primarily Uses
RMMV
Damn, it looked promising too...unfortunately it didn't work. It's probably not selecting the actor for some reason. Either that or the common event isn't running at all. I think the contents of the event are correct though. Must be a plugin issue.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
856
First Language
English
Primarily Uses
RMMV
Hmm, I suppose I should have checked how the common event is being called. That should work if called from the Common Event section of a Skill. Perhaps the Skill Tree System is different.
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,195
First Language
English
Primarily Uses
RMMV
Ok, I got the event to work, the contents are just fine and I figured out how to invoke it. The only issue now is that it's not being unlearned. This is a stat allocation type skill if it wasn't obvious heh. This current issue definitely lies with the plugin. I gotta find the plugin command to unlearn a node in the skill tree basically. Thx for the help on the event itself though!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top