- 49
- Posts
- 17
- Years
- Seen Apr 28, 2013
Hey all its been awile since ive been here.
curantly i have been trying to lern how to script from scratch.
ive followed a few tutorials to make a script of my own.
now the problem is ive made it in vx but i want to change it to xp but not shure what parts to change.
this is the script
its an entourage/Guest script witch ive added to the menu screen.
the idear is that when the global vairable (20) is = to 1 then the actor in slot 2 of data base will apear in the
entourage screen.
now to get it to work in xp im gessing i need to change this part since theres no Scene_Base in xp
i was hopeing some one could let me know what to change please.
thanx.
#Edit- ok ive figered that part out myself now i was just woundering the proper coad to beable to draw a characters name/graphic ive got the coad for the proper placement ect... but i dont have the coad for selecting the character to place/draw
in vx its
$actor=game_actors(2) or somthing like that but not sure what it is in xp
curantly i have been trying to lern how to script from scratch.
ive followed a few tutorials to make a script of my own.
now the problem is ive made it in vx but i want to change it to xp but not shure what parts to change.
this is the script
its an entourage/Guest script witch ive added to the menu screen.
Spoiler:
class Window_Guest < Window_Base
def initialize
super(0,0,320,280)
if $game_variables[20]=1
actor= $game_actors[2]
x,y= 5,10
draw_actor_graphic(actor, x, y)
x,y=10,20
draw_actor_name(actor, x, y)
end
end
class Scene_Guest < Scene_Base
def start
@my_Guest < Window_Guest.new
end
def update
@my_Guest.update
if Input.trigger?(Input::C)
$Scene= Scene_Menu.new
end
def terminate
@my_Guest.dispose
end
end
def initialize
super(0,0,320,280)
if $game_variables[20]=1
actor= $game_actors[2]
x,y= 5,10
draw_actor_graphic(actor, x, y)
x,y=10,20
draw_actor_name(actor, x, y)
end
end
class Scene_Guest < Scene_Base
def start
@my_Guest < Window_Guest.new
end
def update
@my_Guest.update
if Input.trigger?(Input::C)
$Scene= Scene_Menu.new
end
def terminate
@my_Guest.dispose
end
end
the idear is that when the global vairable (20) is = to 1 then the actor in slot 2 of data base will apear in the
entourage screen.
now to get it to work in xp im gessing i need to change this part since theres no Scene_Base in xp
Spoiler:
class Scene_Guest < Scene_Base
def start
@my_Guest < Window_Guest.new
end
def update
@my_Guest.update
if Input.trigger?(Input::C)
$Scene= Scene_Menu.new
end
def terminate
@my_Guest.dispose
end
end
def start
@my_Guest < Window_Guest.new
end
def update
@my_Guest.update
if Input.trigger?(Input::C)
$Scene= Scene_Menu.new
end
def terminate
@my_Guest.dispose
end
end
i was hopeing some one could let me know what to change please.
thanx.
#Edit- ok ive figered that part out myself now i was just woundering the proper coad to beable to draw a characters name/graphic ive got the coad for the proper placement ect... but i dont have the coad for selecting the character to place/draw
in vx its
$actor=game_actors(2) or somthing like that but not sure what it is in xp
Last edited: