Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

 
Closed TopicStart new topic
> Can an ingame variable alter a script?
neiljwd
post May 4 2012, 10:18 AM
Post #1


Level 5
Group Icon

Group: Member
Posts: 69
Type: None
RM Skill: Undisclosed





Well blow me.
Turns out if you're referencing a variable you need to put TWO equals signs.
Really confusing when the things I could see working only use one
IE: parameter_value = @actor.atk

Only discovered it through days and hours of trial n error.


Anyway topic can be IGNORED/DELETED/CLOSED/THANK you.











Hi all, Hopefully some bright spark can give me some assistance, as Ruby is just not my thing.

Using this Status Screen Custom Menu.

Where it says a character stat, like Agility, or strength etc, I'd like to be able to CHANGE that word depending on an in-game variable.
And I'm just using Variable 0001 = 0 for real, and variable 0001 = 1 for dream/night.

For instance, Where it says Attack 112, I'd like to change the word Attack to read Blood. Depending on an in-game variable
Basically a real and dream world where stats do different things, but have the same value (112 in this case).

I want ATTACK to look at variable 0001 and read Attack if it's 0, and read Blood Power if it reads 1.

Is this even possible, and can someone modify the above script to do that for me please. Please!
Hope I've explained myself properly.
CODE
when 0
parameter_name = $data_system.words.atk
parameter_value = @actor.atk
when 1

Possible to add an if variable in there?

This post has been edited by neiljwd: May 4 2012, 11:29 AM


__________________________
If you help me I'll pray for you^^.
Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 12:16 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker