Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Calling the NameInput for a Variable-Stored Actor(SOLVED!), Should be simple...I hope
DUFUTA
post Feb 20 2012, 08:33 AM
Post #1


Level 5
Group Icon

Group: Member
Posts: 60
Type: Musician
RM Skill: Intermediate




I've been studying the Interpreter script and looking for a way to call the Name_Input Scene to change the name of an actor whose ID has been stored in $game_variable[4]. After studying, I tried a few different ways, like:

CODE
$scene = Scene_Name.new($game_variables[4], 8)


The thought process there was to pass into the scene, the actor's id (game_variable[4]) and the max length for the name(8).

I know these are the only two parameters which should be needed for the scene.

Anyway, it seems too simple to be racking my brain wallbash.gif this hard over. So a quick bit of help would be appreciated.

This post has been edited by DUFUTA: Feb 22 2012, 10:05 AM
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
DUFUTA
post Feb 22 2012, 10:04 AM
Post #2


Level 5
Group Icon

Group: Member
Posts: 60
Type: Musician
RM Skill: Intermediate




Thanks, Heisenman. Works perfectly.

I think it could have been done with conditionals, but if there's a high limit on the amount of actors you can create, then you're looking at a huge branch, when this, mere 4 lines of code does the trick.

I've grown to understand that even though there's often a 'way' to do things with events, it's not always the most efficient.

Thanks for the help. By the way, I like and use the fogs you created. biggrin.gif
Go to the top of the page
 
+Quote Post
   



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 08:17 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker