*enters defensive mode* - It was only a quick mock up method after all....
I didnt even think of 'what if the actor has already joined' lol
That being said you method is very nice. much more efficient in terms of making the actor 'as it should be' in terms of hp and stats.
I especially like how you yield the actor data for a block - that is very handy. I think I will be throwing that into some of my own code 😛
Overall... I like. Pity it wasnt me that needed the method but I am sure soul will be thrilled with that one 😀
z=$game_variablesz[81]= "acr"x=z[81]z[82]=$game_actors[1].xstat.xHow can I get it so that it reads the x at the end of the call (xstat.x) as the value that x contains. I am trying to make it so I can specify a type of parameter "acr", "str", etc. that I created with crystals extra stats script. So above I want it to function as if i was asking z[82]=$game_actors[1].xstat.acr. as of righ tnow I get an error because it isnt recognizing x as a local variable. Same goes if I try to replace x with the variable z[81]
@Bee - your method was actually calling a .x or .z[81] method on $game_actors which is clearly non-existent
Do this one instead
z=$game_variablesz[81]= "acr"x=z[81]z[82]=eval("$game_actors[1].xstat.".concat(x))though I don't see the use of X so
z=$game_variablesz[81]= "acr"z[82]=eval("$game_actors[1].xstat.".concat(z[81]))that way it first gets the value of z[81], concats it into the $game_actors[1].xstat before evaluating it...
Is there a way to show a battler for the actors, that takes hits and all, like on XP, without using a whole new battle system? The comments on the script file in portuguese gives the impression it'd be just a few lines to make it work, but I can't make it...
@Solistra - Oh I see, never knew that... XD
@Waterguy - Well, there is Yanfly's Visual Battlers though it uses the character sprite as the battler
ah, ok, I'll take a look.
oh, and... is there a way to see an actor's position in the party?
$game_actors[id].index should do it.
0 means leader, 1 means first follower. So your battle members will be 0, 1, 2 and 3.
Thanks, it worked.
Sorry for asking so much, but does anyone know how to see if what was used was a skill or an item?
depends on where you'd want it... normally, the item/skill used is denoted by "item" on the methods that they're handled... from there you could just do something like
item.is_a?(RPG::Skill) to determine if it's a skill or not (meaning it's an item)
thanks! I used item.is_a?(RPG::Item) though, but it worked!
In Window_Selectable you have this method:
#-------------------------------------------------------------------------- # * Get Rectangle for Drawing Items #-------------------------------------------------------------------------- def item_rect(index) rect = Rect.new rect.width = item_width rect.height = item_height rect.x = index % col_max * (item_width + spacing) rect.y = index / col_max * item_height rect endso you need to make the two methods item_width and item_height. This methods are responsable for the size of the cursor.
If your window inherits from window_selectable just add this two methods to your window and optimize the values. If you already have these methods, just change the values.
How would I go about setting up NPC routines within a game time. For example, Mary can be found in her shop between the times 8am-5pm, but from 6pm till late you can find her in the inn.
Similary, the best way to set up time restrictions for entering houses (a lot of houses). You cannot enter NPC's homes when its night.
(RMVXAce)
I think the best would be through game variables...
Really? Good god, I'm miserable with scripts. I thought, this whole time, that it had to replace something in the battle scripts.
All right, Shaz; thank you! 🙂