SCRIPT HELP AND MONSTER MATH

Posts

Pages: 1
ok yes this IS for a commercial game. Anyone who actually helps me goes in the credits and gets a free copy of the game.

oh yeah using rpg maker xp

Ok how do I get my monsters to act the way they do on aveyond and aveyond 2? When I use approach all the monsters on the map get to you all at once and 2 soon. Right now I'm using trip-events to change from random to approach which almost works. Also a wait certain amount of frames and then approach would work except then when you enter from the other side the monsters would wait too long. So I'm sure there is another way, but what?



HOW to have friends in party that show in window on menu but can't be in active party? I can put the window there but I don't know how to put them in when they join because control variables won't allow strings and also I can't figure out how to use the in-game variables in the script editor.




Last...... what is the math for figuring out attack and defense so that you know how much it takes to kill an enemy and how much damage they will do? Tired of having to play over and over again while I tweak settings just to test whether can beat them or not.
I'm no scripter so i can't provide any help ... but I'm pretty sure $game_variables(Variable ID) is how to get variables in the script editor
Ok figured out how to put a guest window in the menu.... I'm posting the script in case anyone wants it... I was lazy and used the Steps Window and just put my script there since I didn't want the steps window anyways and that way I didn't have to change too much in the menu... just placement of the steps window to be along the bottom... if you use this it is designed to take the place of Window_Steps..... adjust placement of steps window in Scene_Menu if you need to... If you want to use this script and you DO want to keep the steps window you'll have to rename this one or something.
Anyways I also tweaked font size and stuff in status window because this was set across bottom of menu and took part of the bottom of the status window space.... I'll post edits when I put the character graphics in. To use it, when you want someone to join party as the guest use script from event and type in using first guest as example:

$guest_one=true
and then make them disappear from the screen.


To remove them..... from event use script and type in

$guest_one_off = true


Anyways

#==============================================================================
# ** Window_Steps (really guest window in menu) By Krazykat
#------------------------------------------------------------------------------
# This window displays party guests in the menu
#==============================================================================

class Window_Steps < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 680, 80)
self.contents = Bitmap.new(width - 32, height - 32)

refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh



self.contents.clear
self.contents.font.color = system_color
self.contents.font.size = 36
self.contents.draw_text(8, 8, 120, 32, "Guests")
self.contents.font.color = normal_color
self.contents.font.size = 20
if $guest_one==true and $guest_one_off != true then #so if you turn on the guest_off they go away.
self.contents.draw_text(70, 20, 120, 32, "Celia", 2) #put the guest name in here
else
self.contents.draw_text(70, 20, 120, 32, "none", 2) #if you want it blank remove 'none'
end
if $guest_two==true and $guest_two_off != true then
self.contents.draw_text(200, 20, 120, 32, "gretel", 2)
else
self.contents.draw_text(200, 20, 120, 32, "none", 2)
end
end
end



It works great..... but can someone tell me whether I am using switches or variables or what?
Pages: 1