[COD]Using Varables as a case method

Go down

[COD]Using Varables as a case method

Post by Kyle? on Fri May 07, 2010 1:55 am

Well this is a simple thing to do actually!


Ok make a script section open (In the RMVX Editor!)

1.) make you variable method
like this:
Code:

var_ID = 1 #Variable ID

2.) make the case method with the $game_variable[var_ID] next to it like this:
Code:

var_ID = 1

case $game_variables[var_ID]

3.) Next make the when (Number) method after the case Like this:
Code:

var_ID = 1

case $game_variables[var_ID]
when 1
 do_do
when 2
 and_and
when 3
 if_if

4.) Well that's it simple huh? well add some def calls like this:
Code:

var_ID = 1

case $game_variables[var_ID]
when 1
  do_do
when 2
  and_and
when 3
  if_if
 
 
  def do_do
    #
   
  def and_and
    #
   
  def if_if
    #

Well here you are!
avatar
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

View user profile

Back to top Go down

Re: [COD]Using Varables as a case method

Post by omegas7 on Sun May 09, 2010 11:33 am

That is a nice start Very Happy, Dezz will like this <.<

__________________________________
avatar
omegas7
Admin
Admin

Posts : 1180
Gald : 4121

Stats
Cookies: 0

View user profile http://www.omegadev.biz

Back to top Go down

Re: [COD]Using Varables as a case method

Post by Dezz123 on Sun May 09, 2010 1:10 pm

Omegas7 wrote:That is a nice start Very Happy, Dezz will like this <.<
...Is that offensive...? ">_>

@Kyle?- Cool. Weird, but cool. Razz
avatar
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

View user profile http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

Re: [COD]Using Varables as a case method

Post by Andinator on Sun May 09, 2010 2:08 pm

naise tut XD
avatar
Andinator
Student
Student

Posts : 100
Gald : 458

Stats
Cookies: 0

View user profile

Back to top Go down

Re: [COD]Using Varables as a case method

Post by omegas7 on Sun May 09, 2010 5:58 pm

dezz123 wrote:...Is that offensive...? ">_>

Definitely. Well, you were doing great until we touched classes Sad

__________________________________
avatar
omegas7
Admin
Admin

Posts : 1180
Gald : 4121

Stats
Cookies: 0

View user profile http://www.omegadev.biz

Back to top Go down

Re: [COD]Using Varables as a case method

Post by Vectomon on Wed May 19, 2010 8:33 pm

So... this is supposed to do what? (Sorry if it sounds stupid; Coding really isn't my thing)

__________________________________

...if you know what I mean. Wink

Vectomon
Resource Moderator
Resource Moderator

Posts : 1029
Gald : 3025

Stats
Cookies: 0

View user profile

Back to top Go down

Re: [COD]Using Varables as a case method

Post by Andinator on Wed May 19, 2010 8:34 pm

it allows you to code that whenever a variable = x then the script will activate or do something...
avatar
Andinator
Student
Student

Posts : 100
Gald : 458

Stats
Cookies: 0

View user profile

Back to top Go down

Re: [COD]Using Varables as a case method

Post by Vectomon on Thu May 20, 2010 10:03 am

Ooooh! Nice! I bet it'd be really useful if I was a scripter.

__________________________________

...if you know what I mean. Wink

Vectomon
Resource Moderator
Resource Moderator

Posts : 1029
Gald : 3025

Stats
Cookies: 0

View user profile

Back to top Go down

Re: [COD]Using Varables as a case method

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum