Status
Not open for further replies.

R_Dog123

Warper
Member
Joined
Jan 7, 2014
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Recently I have been working on an easy gold randomizer for dungeon chest loot. And I have made it through Controlling Variables. 

However, I got a small line of script from the internet that I assumed told the player how much Gold he got from the chest.

But I was wrong.... Here is the script. (it is seriously only like 5 letters)

(\v[4])

bandicam 2014-01-06 22-18-30-718.jpg 

This is what it does when you walk over it...

bandicam 2014-01-06 22-23-49-956.jpg

But as you can see in the top left corner, the character had actually looted 27 Gold. 

Is there a script that would tell the player how much Gold he got? 

And if not how should I go about this. 

P.S.

I couldn't find the Script Support Forum so I posted here, sorry if that is an inconvenience. 
 
Last edited by a moderator:

Selchar

Veteran
Veteran
Joined
Dec 28, 2012
Messages
299
Reaction score
82
First Language
English
Primarily Uses
Your event is set up properly, with 1 problem.  You're using variable 6 to randomize the gold you gained, but you're using variable 4 in the text display.

In \v[x], x refers to the variable id.
 

R_Dog123

Warper
Member
Joined
Jan 7, 2014
Messages
2
Reaction score
0
First Language
English
Primarily Uses
I'm new to this stuff. 

That worked. 

Thank you!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,434
Reaction score
15,226
First Language
English
Primarily Uses
RMMV
Note - this is not a script. This is an event. Script in RPG Maker means something else completely, so your thread title is a little misleading. Just for future reference ;)


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

gotta love when a plugin you thought had nothing to do with why something else wasn't working winds up being the issue...
Doing RPG Maker News for 26th September 2021

Well... it's been a while since I was last here :kaoswt: I don't want to say I'm officially 'back' yet, but I've recently started working with RM again, so I might become active here again :kaohi:
Mmmm I love Coca Cola candy! :kaoluv:
aaaand my power is out. I sometimes think that I'm cursed.

Forum statistics

Threads
115,395
Messages
1,089,546
Members
150,132
Latest member
pipgea
Top