Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Question about UMS

Status
Not open for further replies.
Sorry if this is in the wrong place, wasn't sure where to put it.

I've just finally found my copy of ccoa's UMS script, and want to use it in a project. However, I don't have the demo file anymore, just the script, and I can't remember how to turn it on in the game. I'm pretty sure I have to use a call script to make it work, am I right? Can anyone tell me what the call script is to get the UMS working please? Thanks!


Edit: The regular tags in the script are working, but the shortcuts are not. Here is what that section of the script looks like:

Code:
   @used_codes = ['\v', '\n', '\c', '\g', '\skip', '\m', '\height', '\width', 
                   '\jr', '\jc', '\jl', '\face', '\fl', '\fr', '\b', '\i', '\s',
                   '\e', '\t1', '\t2', '\th', '\nm', '\font', '\p', '\w', '\ws',
                   '\oa', '\oi', '\os', '\ow', '\tl', '\tr', '\tc', '\ignr', 
                   '\shk', '\slv', '\ind', '\inc']
                   
    @shortcuts = {}
  end
  
  def add_shortcut(shortcut, code)
    text = shortcut.downcase
    if !@used_codes.include?(text)
      @shortcuts[shortcut] = code
    end
  end
  
  def run_shortcut ()
    $game_system.add_shortcut('\NONE', '\nm[]\face[]\fl\tc\width[510]')
    $game_system.add_shortcut('\p1', '\nm[Ailly]\face[f8_2]\fl\tl\width[510]')
    $game_system.add_shortcut('\p2', '\nm[Riyan]\face[ci5]\fl\tl\width[510]')
    $game_system.add_shortcut('\c1', '\nm[Brauna]\face[]\fl\tl\width[510]')
    $game_system.add_shortcut('\c2', '\nm[Innkeeper]\face[]\fr\tl\width[510]')
    $game_system.add_shortcut('\c3', '\nm[Shopkeeper]\face[]\fr\tl\width[510]')
    $game_system.add_shortcut('\i1', '\nm[Acquired]\face[]\fr\tc\width[250]')
    $game_system.add_shortcut('\i2', '\nm[Lost]\face[none]\fr\tc\width[250]')
    $game_system.add_shortcut('\info', '\nm[]\face[]\fr\tl\width[480]')
  end

Does anyone know why the shortcuts are not working properly? Thanks for any help you can give me.

Edit2: Never mind, have figured it out myself.
 
This is actually supposed to be in the RGSS Support section, fyi.

And for your question, there is no call script. The UMS works automatically once you put it in. To use it, you have to open up your script editor (two icons to the left of the playtest button). On the left, scroll down to Main, right-click it, and press Insert. Copy-paste your script in and you're all done.
 
Thanks, I'll report this thread to have it moved.

I've pasted the script into the editor. The regular commands work fine, but I'm trying to use the shortcuts, which are not working. Any idea what the problem might be? I've put the shortcut section of the script in the first post, is there an error in it somewhere?
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top