[Ace] Check my Script, change item and message generate.

CrawlinUK

Villager
Member
Joined
Feb 24, 2014
Messages
9
Reaction score
1
First Language
English
Primarily Uses
Hi

I should mention first that I don't really know RGSS, but I understand programming structure enough to know what it going on.

The Script I used was, with bits of help from here and there, but mainly here http://hikimoki.sakura.ne.jp/html/rgss_memo_0.html. I couldn't find anywhere that had exactly what I was looking for, unless it meant adding blocks and blocks of script.

I added:

i = $game_variables[5]

item = $data_items

$game_party.gain_item(item,1)

$game_variables[6] = item.name

-to a common event with a sound effect, a Self switch A and the Text: Found \C[4]\V[6]\C[0]!

 

Then create an Event with  Control Variable no. 5 and assign it the item number (as listed in the items database), and a call to the above common event.

 

It works fine...

 

item.PNG

 

...but is it the best way to do this?

 

 

I was trying to free up variable 6 by using:

$game_message.add("Found #{item.name}")but I could not figure out how to make the item highlighted a different colour like above. The \ control characters don't work the same here, hence why I used variable 6.

 

If this could have been done better or easier, please tell me.

Thanks
 

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
it's simple, when you do them in the text string like that, just add another \.. so "Found \\C[4]#{item.name}\\C[0]"
 

CrawlinUK

Villager
Member
Joined
Feb 24, 2014
Messages
9
Reaction score
1
First Language
English
Primarily Uses
it's simple, when you do them in the text string like that, just add another \.. so "Found \\C[4]#{item.name}\\C[0]"
Its only simple if you know the solution  ;)

That works fine thanks. :rock-right:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,567
Latest member
sashalag
Top