MicKo's Skill Tree - Revised
#11
The MicKo Revised system not only allows one to define Skill trees for individual actors, but can allow one to make tree sets for character classes. I intended that the 'configurable switch' in the script, CLASS_TREE_START on line 111 to be set to false rather than true, but ... heheh... I accidentally left the switch turned on, so it is assuming you made trees for every class.

IF you have it set to false, you can make one set of trees (defined as SKILL_ROWS[actor.id]) per actor. IF you forget to make a tree for an actor, the system has NO problem and skips the actor in favor of a blank screen. That would explain the "Estelle was here" screenie as I didn't want Estelle (Actor #5) to have a tree.

BUT... if you have the fore-mentioned switch set to true, you MUST define a set of trees (again defined as SKILL_ROWS(class_id) for each character class. This time, you cannot skip a class. That's why, within the demo, you can see that both the 1st and 2nd party members share the same class tree. They share the same class.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#12
sorry to be a pain I turned the switch to false but now I am getting this message
[Image: moreerrors.jpg]
Reply }
#13
You may use either the commands.....
$scene = Scene_SkillTree.new( actor_index [, from_map ])
-or-
skilltree( actor_index [, from_map ])

.... to bring up the skill tree. HOWEVER, if you have only 2 people in your party and ask to bring up the 3rd member in your party, you'd have an error as there would not be any actor for the skill tree system. Actor index is not the same as the actor_ID after all, and is mentioned in the instructions in the script.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#14
Really really sorry to keep bothering you but am I supposed to enter that as the script the entity uses to make the skilltree appear or is that meant to go in the skilltree script somewhere? again I must apologize I have next to no understanding of scripting
Reply }
#15
It's meant to be called from an event in game from what I understand.
Epic script btw! Going to try it out right away when I get home.
[Image: onBsjEH.jpg]
Reply }
#16
[Image: skilltreehelp.jpg]
I tried that I just keep getting a syntax error or am I supposed to write the maps name where it says from_map?
Reply }
#17
Home now, lemme read through it real quick.
First of all, this is an XP script. I don't have experience with XP (yet!)

Looking at the demo, I've figured something out tbh. You shouldn't call the script as $scene = Scene_SkillTree.new( actor_index [, from_map ]) as you did, but instead make the actor_index correspond to your actor's ID in the database. the from_map should be left alone I think(try changing that too), although I can't test it (because I don't own RMXP (yet, god dammit!)
Try downloading the demo and check out how the events are made in the demo, that's most likely the best way to figure it out.
[Image: onBsjEH.jpg]
Reply }
#18
The syntax is correct. It uses the same actor_index value as other main menu functions, such as the Scene_Item, Scene_Skill and others. And insofar as the from_map value, this lets one generate a Skill Tree from an event. This would be like one is learning skill techniques from a trainer NPC who asks what skill types one may wish to learn.

One can gain the actor_index of a particular party member by oerforming a small scriptette that cycles through the party until the desired ID is found
Code:
actor_index = nil
actor_id = 3
for member in $game_party.actors
if member.id == actor_id
actor_index = member.index
end
end
p actor_index
This bit looks for whatever actor in your party is actor #3 in your database (Cyrus). If he's not there, it would return 'nil' otherwise, it would be the actor_index in your party.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#19
what does this new script do? it shows the actor index of my character ok what does that mean I have to do to the script to make the skilltree appear please remember you are talking to a complete layman explain it as if you were talking to a child.
Reply }
#20
The script snippet VVulfman posted prints out the actor id for your actor. It's the actor_index variable used in the code you put in the event.
[Image: onBsjEH.jpg]
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Skill Roulette XP kyonides 0 1,141 06-16-2023, 07:10 AM
Last Post: kyonides
   Fast Skill Grouping DerVVulfman 3 4,836 06-12-2023, 05:28 PM
Last Post: DerVVulfman
   Skill Casting Delay DerVVulfman 1 10,987 11-20-2018, 05:38 AM
Last Post: DerVVulfman
   MicKo's Skill Tree DerVVulfman 48 91,613 11-08-2016, 08:04 PM
Last Post: DerVVulfman
   GPLAT Pixel Platformer Revised DerVVulfman 0 4,616 10-02-2014, 04:14 AM
Last Post: DerVVulfman
   Skill Shop Legacy 1 7,727 06-30-2012, 07:36 PM
Last Post: KasperKalamity
   Skill Leveling DerVVulfman 28 43,275 04-07-2012, 09:25 AM
Last Post: Waddle Dee
   Trickster's Bag Of Skill Effects Trickster 5 15,261 02-23-2010, 06:32 AM
Last Post: fgsfds
   Custom Skill Effects Lowell 0 5,052 03-06-2008, 06:16 AM
Last Post: Lowell
   Moghunter Menus: Scene Skill Nami DerVVulfman 0 6,121 03-05-2008, 06:45 PM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)