Author Topic: I'm back for help! Again!  (Read 2887 times)

0 Members and 1 Guest are viewing this topic.

Vasha

  • 小説家
  • *
  • Tier 7
  • **
  • Posts: 10647
  • Gender: Male
  • Relentlessly Gay
    • My Tumblr
  • Current Mood: blank blank
I'm back for help! Again!
« on: August 11, 2009, 09:43:02 AM »
So I think that I've thought of an evented battle system that might work for the half of my game that was going to use a TBS, but now I've run into something. I want to get rid of the 'equipment' option in my menu, and replace it with something that lets you equip stuff that buffs up your whole party (instead of just one person). But the thing is, I want it to be controllable (still), cuz a different part of my game needs to have the equipment.

EDIT:

The script I'm using is called the FFX-2 Custom Menu Script, I think. It's too big to post up here I'm pretty sure. (how do you the script boxes, by the way?)

Thanks again!

EDIT 2 :D:

Also, is there any way for an event to wait for a random amount of time (preferably inside of a range of digits?) It would be nice to have it wait depending on a variable. Thanks!
« Last Edit: August 11, 2009, 02:47:00 PM by Vasha »

mepwnn

  • いつまでも
  • *
  • Tier 7
  • **
  • Posts: 10974
  • Gender: Male
  • profile picture courtesy of Silentgears
  • Current Mood: happy happy
Re: I'm back for help! Again!
« Reply #1 on: August 12, 2009, 04:58:55 PM »
I'm no scripter, but as for your EDIT 2, the most I can say is just change the frame rate of the game (Graphics.frame_rate = n). Don't know if that works, though :P

As for your original question, it's a little confusing. Care to elaborate on "controllable?"

Script boxes are code boxes. You put them in spoilers if they're really big. For example:
Spoiler: Click to show code box • show
[code]Insert Code Here[/code]


Sorry, I'm not much of a help ^^'
Portals... must capture... ALL the portals... (click image to enlarge)

Reives

  • Dr Platplat
  • Director
  • Tier 7
  • ****
  • Posts: 11334
  • Gender: Male
    • Freebird Games
  • Current Mood: happy happy
Re: I'm back for help! Again!
« Reply #2 on: August 12, 2009, 05:15:07 PM »
Can't help ya with the first one, but for the waiting random amount of time thing:

Loop begin
---control variable: var set to random 0 to [variable here that represents the average frames you wanna wait]
---wait 1 frame
---conditional branch: if var == 0
------break loop
---end conditional branch
end loop

I think that'll work. c:

Vasha

  • 小説家
  • *
  • Tier 7
  • **
  • Posts: 10647
  • Gender: Male
  • Relentlessly Gay
    • My Tumblr
  • Current Mood: blank blank
RESOLVED: I'm back for help! Again!
« Reply #3 on: August 18, 2009, 07:00:57 PM »
^yeah, i thought about that before while i was gone a bit, that should work.

As for your original question, it's a little confusing. Care to elaborate on "controllable?"

I pretty much have to be able to choose (as the creator, not the player) once whether i want a standart equipment selection, or if i want the party enchantment selection. i'm probably scrapping that anyways, though.

Thanks guys!


Sarkilas

  • *
  • Tier 6
  • **
  • Posts: 429
  • Gender: Male
  • That guy
  • Current Mood: creative creative
Re: I'm back for help! Again!
« Reply #4 on: August 21, 2009, 11:35:02 AM »
(how do you the script boxes, by the way?)
Not sure exactly what you mean. Do you mean the boxes containing player information, menu commands etc.? These are based on windows with an opacity value of 0 (making the window invisible, but the contents visible), and then adding a picture as the box beneath the actual content. I could explain in detail how to do this process, if you want.
Also, is there any way for an event to wait for a random amount of time (preferably inside of a range of digits?) It would be nice to have it wait depending on a variable. Thanks!
If I understood correctly, this will require a small addition to your scripts. Add this to a new script below the last Interpreter to start with:
Code: [Select]
class Interpreter
  def delay(wait)
    @wait_count = wait * 2
  end
end
Now whenever you want to wait for X amounts of frames, use a Call Script inside any event and type either of these lines:
Code: [Select]
delay(20) # waits 20 frames
delay($game_variables[1]) # waits frames depending on variable no.1's value
That should do it I think. If you meant something else, have a go at me:P

Need scripting help? Toss me a PM and I'll see what I can do.
Also able to help with anything RMXP related. Please do not hesitate to ask.

Vasha

  • 小説家
  • *
  • Tier 7
  • **
  • Posts: 10647
  • Gender: Male
  • Relentlessly Gay
    • My Tumblr
  • Current Mood: blank blank
Re: I'm back for help! Again!
« Reply #5 on: August 22, 2009, 11:17:10 AM »
(how do you the script boxes, by the way?)
Not sure exactly what you mean. Do you mean the boxes containing player information, menu commands etc.? These are based on windows with an opacity value of 0 (making the window invisible, but the contents visible), and then adding a picture as the box beneath the actual content. I could explain in detail how to do this process, if you want.
i actually meant code boxes in the forum, but i figured it out

Also, is there any way for an event to wait for a random amount of time (preferably inside of a range of digits?) It would be nice to have it wait depending on a variable. Thanks!
If I understood correctly, this will require a small addition to your scripts. Add this to a new script below the last Interpreter to start with:
Code: [Select]
class Interpreter
  def delay(wait)
    @wait_count = wait * 2
  end
end
Now whenever you want to wait for X amounts of frames, use a Call Script inside any event and type either of these lines:
Code: [Select]
delay(20) # waits 20 frames
delay($game_variables[1]) # waits frames depending on variable no.1's value
That should do it I think. If you meant something else, have a go at me:P

so i put the top one where? that looks like what i wanted though, thanks!

Sarkilas

  • *
  • Tier 6
  • **
  • Posts: 429
  • Gender: Male
  • That guy
  • Current Mood: creative creative
Re: I'm back for help! Again!
« Reply #6 on: August 22, 2009, 01:53:15 PM »
You put the top one right below your last Interpreter. By default, in the script editor, there's 7 of them I think. So insert a new script below Interpreter 7, and paste it in there.

Need scripting help? Toss me a PM and I'll see what I can do.
Also able to help with anything RMXP related. Please do not hesitate to ask.

Vasha

  • 小説家
  • *
  • Tier 7
  • **
  • Posts: 10647
  • Gender: Male
  • Relentlessly Gay
    • My Tumblr
  • Current Mood: blank blank
Re: I'm back for help! Again!
« Reply #7 on: August 22, 2009, 05:38:26 PM »
K! Thanks! :reivsmile: