View Single Post
  #196    
Old November 11th, 2012 (7:12 AM).
pichu2000 pichu2000 is offline
     
    Join Date: Nov 2005
    Gender:
    Posts: 153
    Hi, people!
    Sorry for the lack of updates, but UNI this year is very difficult and I have almost no time to work on tool. But I hope to find it!
    Now, a question about script:
    I'm working on a better script viewer (to help people to have a more meaningful representation of what a script should do) and I'm focusing to trasform old script language into in a more "programming-like" language.
    An example. This is a real script of DP ROM.
    It is the actual NPRE's view

    Quote:
    === Script 3 ===

    Offset: 68 Fanfare 1500
    Offset: 72 LockAll
    Offset: 74 FacePlayer
    Offset: 76 StoreFlag 165
    Offset: 80 If EQUAL Function 0 (98 )
    Offset: 87 Message2 3 = ' Sembra che il Capopalestra Fannie/nnon sia da queste parti./rEh! Avrà saputo che bazzico nei/ndintorni e se la sarà data a gambe!/0 '
    Offset: 90 WaitButton
    Offset: 92 CloseMessageKeyPress
    Offset: 94 ReleaseAll
    Offset: 96 End

    === Function0===

    Offset: 98 Message2 4 = ' Già, quindi il Capopalestra è tornato/ne l'ho sfidato./r... Ci ha polverizzato. Ora devo/nrimettere in sesto tutta la squadra.../0 '
    Offset: 101 WaitButton
    Offset: 103 CloseMessageKeyPress
    Offset: 105 ReleaseAll
    Offset: 107 End
    Now, my idea is to remove all the "Function call" and operate on each command to make it meaningful.
    The new script should appear like this:


    Quote:
    === Script 3 ===

    Fanfare( MUSIC_ID 1500);
    LockAll();
    FacePlayer();
    If( FLAG 165 == TRUE)
    {
    Message2( MESSAGE_ID 4 = Già, quindi il Capopalestra è tornato/ne l'ho sfidato./r... Ci ha polverizzato. Ora devo/nrimettere in sesto tutta la squadra.../0 );
    WaitButton();
    CloseMessageKeyPress();
    ReleaseAll();
    End();
    }
    Message2( MESSAGE_ID 3 = Sembra che il Capopalestra Fannie/nnon sia da queste parti./rEh! Avrà saputo che bazzico nei/ndintorni e se la sarà data a gambe!/0 );
    WaitButton();
    CloseMessageKeyPress();
    ReleaseAll();
    End();
    Now, It's a good idea? Do you prefer the old view or do you like the new?
    If you prefer the new, this implies a bunch of new work (I've almost done 30%) to make the new parser.
    If you don't like, I don't spend my little time on this feature and I'm focuzing on other.
    So, please tell me your opinion!