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

● ARCHIVED · READ-ONLY
Started by CrawlinUK 3 posts View original ↗
  1. 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
  2. it's simple, when you do them in the text string like that, just add another \.. so "Found \\C[4]#{item.name}\\C[0]"
  3. Venka said:
    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: