I've been working for a while on making an item that modifies a character's number of skill points, realized it can't be done with events, and moved on to looking at the base script library.
From what I can tell, Scene_Item is where the scope and target(s) of an item are defined. I am unsure as to how exactly,
works. (This particular line is under #If single target) I think that line is defining the actor that will be the target of an item by checking which actor is being highlighted in the target window.
Is there a way that I can first specify the ID of one particular item, (The item that will increase skill points, which happens to be 32 in my case) and then use,
to return the ID of the target actor, so that I can make something like this?
From what I can tell, Scene_Item is where the scope and target(s) of an item are defined. I am unsure as to how exactly,
Code:
target = $game_party.actors[@target_window.index]
works. (This particular line is under #If single target) I think that line is defining the actor that will be the target of an item by checking which actor is being highlighted in the target window.
Is there a way that I can first specify the ID of one particular item, (The item that will increase skill points, which happens to be 32 in my case) and then use,
Code:
target = $game_party.actors[@target_window.index]
to return the ID of the target actor, so that I can make something like this?
Code:
if target = 1
# Actor 1 receives a skill point
if target = 2
# Actor 2 receives a skill point