Just draw your image in the windows contents and then draw the text with x + image_width + 4 for example if you want it beside the image.
Use y + image_height + 4 for example to draw it under the picture. And nothing is resized automatically, only text will be resized when drawn with the draw_text method.
Creating a d&d 3.5e style damage and hit formula, but running into a bit of a snag.
(using Lunatic Damage by Yanfly for reference here)
when /PHYSICAL DAMAGE/i dmg = 1+rand(10) #damage of a Katana in d&d 3.5e nat20 = 1+rand(20) #determining a natural hit roll of 20. means auto hit and auto crit bab = a.level #base attack bonus. under construction still, but +1 for every level if nat20 = 20 #don't know how to tell the game that the attack hits. This is the problem I'm having. results.critical = true #pretty sure this will make it auto crit end tohit = nat20 + bab #Hit formula. 1d20 + bab if tohit >= 10 + (b.agi - 10 / 2) #AC equals 10 + DEX mod + armor. Armor is out atm. #need to figure out how to tell the game this is a hit. same as above end value = dmg + (((a.atk - 10) / 2) + a.level)pretty much need to figure out how to make the attack auto hit if the variable to hit is greater than the enemies armor class. Any help will be appreciated.
how would you know that the window is disposed?
Is it .disposed? or disposed == true?
Is there even an attribute called @disposed? Anyway, you check it via "disposed?"
I have a question over random attack over 4 enemies. Sometimes, the target hits an enemy twice. Is there a way so that instead of targeting the same enemy twice, it would truly make a true 4 random enemies attack? Like for example, I have 4 slimes and I have a skill called High Jammer that attacks 4 random enemies. By default, it randomizes from the 4 slimes, but it can hit Slime B twice sometimes. I don't want to randomly hit an enemy twice, rather, attack the 4 enemies once, but randomly.
If there's a script that allows an attack to deal more than 9 hits, where would I find it?
I'm not sure if there is a database limit breaker script that allows to extend this value more easily, but you could try this:
class RPG::UsableItem
def repeats
@real_repeats ||= (note[/<REPEATS🙁.*?)>/i, 1] || @repeats).to_i
end
end
If you want an item to repeat more than 9 times, you can put
<Repeats: 999>
into its notebox.
see, I never think like that. I should of realized that the hit was determined before damage calculation. I feel kinda stupid now.
I guess your fix would work. It'd be the easiest way I think. Thanks for your help!
I've created a skill that can only be used from the Menu, and sets a State on the user as well as running a Common Event. What it did was start a Conditional Branch that checked who had the State inflicted upon them, and then ran another Conditional Branch to check if they had a second specific skill. If they had this second skill, the Common Event would remove it from that actor, and then removed the State. If they did NOT have the second skill, it would instead make them learn it, and then remove the State. It was essentially a toggle on/off for the second skill. However, I realized I would have to make a Conditional Branch for every character in the game, and that it would be much simpler to just handle it through scripting.
So, now my issue is that I don't know how to set up that script. I currently have the skill with a formula of:
$game_variables[8]=a.id;which sets the first skill's user as a variable. What I want is to have the skill's Common Event start a Conditional Branch: If the actor has already learned the second skill, then that second skill is removed, but if the actor does already know the second skill, it will be added. I couldn't find any information anywhere that would help with setting this up, but I may just be bad at searching.
Does it have a sequence for targeting? Upon trying Another Fen's script, I kinda get the idea how to make the random targets truly random. However, how about sequenced targets? For example, I have 1 Skeleton and 3 Slimes as enemies. I want the skill to target the skeleton 2 times and the three other slimes after. However, since I want the three slimes to receive a different skill as attack, I don't know how to sequence them. I tried using item_apply where when I apply the skill, it casts another spell, but it just doesn't have that sequenced attack as I want it to.
I'm looking for an English translation of moghunter's Master Demo 11.1, I want to learn how to do the presenting images during battle thing, but its a bit hard to understand when I have to google translate it!.... (I did have a brazilin friend but college stole yet another beautiful life QQ... lol xD...) But yea I'd really appreciate it. Or maybe someone could pm me and help me do the script I want from scratch, but I'd have to explain what I want better.... I really just want a translation...
That would be an RGSS3 Script Requests post 😉
You could just start a new thread and discuss it if you want - I'm sure there would be others who would be interested too 🙂
alright I'll Make it a thread so that other can get help too!!
I want to show current time within a message box and a need a way to display a zero in front of a single-digit number.
For example, I want to go from this 1:4 PM to this 1:04 PM. Is there any way to pull this off?
EDIT: Nevermind, I figured it out. I didn't think it would work at first, so I went ahead and asked.
x = $game_variables[81]# "Minute" variablex > 9 ? y = "" : y = 0$game_variables[90] = y # "Zero" variableTextbox = \V[hour]:\V[zero]\V[minute]
Don't know if its the most efficient way, but it works.
Or you could just store the current time within those variables using the built in Time class methods, much cleaner that way.
You can read about that in the help files in RPG Maker, under the Time index.
I'll look into it, but it sounds less versatile... I misspoke when I said "current time", I'm using a set of variables in a common event to keep track of in-game time.