RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VX]Scripting Help

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 71
I'm pretty new to scripting and I'm completely stumped on my current script. I was wondering if some one could help me finish it. What I need to do is instead of a command window, make icons in those circles and write the name of what is on under the bar where it says main menu. I would also need to make the selector a circle to fit the icons. Here is a picture of what it looks like so far. If it requires some one to look at it then I will post it.

A quick question, is there a way to make the graphics and stuff glide on to the screen?

****
Rep:
Level 71
I managed to get rid of the command window and created icons, I also made a circle cursor and I tried to do a thing with using input trigger to move the circle to each Icon but it didn't work. Can any send me in right direction on this?

****
Rep:
Level 71
Alright I really need help now, what  I attempted to do was give every icon a number. So I would be trying something like this in every one.
Code: [Select]
if number = 1
    @cursor.x=132
    @cursor.y=265
    if Input.trigger?(Input::C)
      Sound.play_decision
      $scene = Scene_Items.new
Except it draws the cursor when it equals zero.

Then I would change the variable like this.
Code: [Select]
if Input.trigger?(Input::RIGHT)
      Sound.play_cursor
      number = number + 1
     
   elsif Input.trigger?(Input::LEFT)
      Sound.play_cursor
      number = number - 1
      unless number = 0
      Sound.play_buzzer
      end
    end
  end
This hasn't been working at all, so can someone please tell me how I can make it work.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
What methods are those in? Are they in separate methods? Why are you resetting the bitmap graphic every time?

If they are in separate methods then the number variable has local scope (unless you have defined methods for number and number=), so changing it in one does not change it in the other. If they are in the same method, is it all within a loop, or how is the value of the number variable being retained?

I need a lot more context to actually help you.

****
Rep:
Level 71
Alright I sent you a PM with all the stuff.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
I'm pretty busy right now, but I will try to get around to it sometime this coming week.

****
Rep:
Level 71
That's fine  :)

*
Rep:
Level 82
I don't know whether you got something about this:

Code: [Select]
if number = 1
    @cursor.x=132
    @cursor.y=265
    if Input.trigger?(Input::C)
      Sound.play_decision
      $scene = Scene_Items.new

It's a common problem to run into is this one. What you have is an assignment to n, not a comparison check. You need to change it to "if number == 1" for it to work properly. Otherwise, any value will pass the check as long as number can be given the value 1.
(Why do I always feel like it's the end of the world and I'm the last man standing?)

****
Rep:
Level 71
Thanks I'll change that but I'm not sure if it will fix the problem.