Main Menu
  • Welcome to The RPG Maker Resource Kit.

simple ?'s RESOLVED

Started by da good king, July 31, 2007, 02:26:06 PM

0 Members and 1 Guest are viewing this topic.

da good king

man, how i wish there was a place that answered stupid ?'s like these, but:

1. what's the command you give the script to call a movie(.avi,.mpg,.wmv) file?

2. what's the value for a given party members position in the party (in terms of an integer)

3. what's the symbol used to mean "divisible by" in ruby script

WcW

1.  Impossible.

2.  You have to know the actor's ID to access it in $game_party in the first place.

3.  None.  But there is

num = var1.to_f / var2.to_f
if not num.is_a?(Float)
  <do something>
end
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.

shaz

I think 2. you could loop through $game_party.actors and compare the name with what you're after, if you know your character's name.  Bit messy though.

3. Use the modulus operator
if var1 % var2 == 0
  # var1 is divisible by var2
end
Always remember you're unique.
Just like everybody else.

Zeriab

1. Way to bothersome to be worth it... though you can try using the script Behemoth has made: http://www.phanxgames.com/forum/forum_posts.asp?TID=3912
2. actor.index

shaz answer the third question ^_^