Results 1 to 4 of 4
  1. #1
    rotceh_dnih's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    here
    Posts
    5
    Reputation
    10
    Thanks
    1

    New modder Need help with simple text input NOOB!!

    hay im newist to this and wish to start a mod xD
    so i thought i good first mod would be to just add text in game,, i seen the Isnipe mod 2.5 info text and liked it but i can not make it work as im not sure where to put it im useing the _rank.gsc that i got from Here and this is what i want to add but if my own stuff
    /*
    ============================================

    iSNIPE INFO

    ============================================
    */

    CreateInfo()
    {
    self endon("disconnect");
    HUDoffsetX = -130;
    HUDoffsetY = -120;

    /* CLOSE INFO */
    HUDcloseinfo = self createFontString("default", 1);
    HUDcloseinfo setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 40);
    HUDcloseinfo setText("^5[^7PRESS 7^5] TO HIDE INFO");

    /* CHARACTER NAME */
    HUDplayername = self createFontString("default", 2.2);
    HUDplayername setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 30);
    HUDplayername setText(self.name);

    /* WELCOME TEXT */
    HUDwelcome = self createFontString("default", 1);
    HUDwelcome setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 8);
    HUDwelcome setText("^5Welcome to the game!");

    /* MOD NAME */
    HUDmodname = self createFontString("default", 1.6);
    HUDmodname setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY + 2);
    HUDmodname setText(game["modname"]);

    /* MOD DESCRIPTIONS */
    HUDmodinfo = self createFontString("default", 1);
    HUDmodinfo setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY + 20);
    HUDmodinfo setText(DoModInfo());


    while(1)
    {
    if(self ActionSlotTwoButtonPressed())
    {
    if(self.HUDINFO == 0)
    {
    self.HUDINFO = 1;
    HUDmodinfo.alpha = 0;
    HUDmodname.alpha = 0;
    HUDwelcome.alpha = 0;
    HUDplayername.alpha = 0;
    HUDcloseinfo setText("^5[^7PRESS 7^5] TO SHOW INFO");
    }
    else if(self.HUDINFO == 1)
    {
    self.HUDINFO = 0;
    HUDmodinfo.alpha = 1;
    HUDmodname.alpha = 1;
    HUDwelcome.alpha = 1;
    HUDplayername.alpha = 1;
    HUDcloseinfo setText("^5[^7PRESS 7^5] TO HIDE INFO");
    }
    }
    wait 0.0001;
    }
    }

    DoModInfo()
    {
    modinfo = "";
    modinfo += "^3DESCRIPTION" + "\n";
    modinfo += "^7This is a sniper mod" + "\n";
    modinfo += "which is based on promod" + "\n";
    modinfo += "to provide the best gaming" + "\n";

    modinfo += "^3EQUIPMENT" + "\n";
    modinfo += "^71x L96A1" + "\n";
    modinfo += "With Extended Mag" + "\n";
    modinfo += "With Variable Zoom" + "\n";
    modinfo += "1x Tomhawk" + "\n";

    return modinfo;
    }
    Last edited by rotceh_dnih; 02-24-2011 at 08:35 AM.

  2. #2
    ferryadams11's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    My Mood
    Cool
    it doesn't really matters where u put it inside the _rank.gsc I guess. just put it below another thread/function

  3. #3
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy
    Recommend to use _rank

  4. #4
    willrulz188's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Ohio?
    Posts
    1,786
    Reputation
    35
    Thanks
    231
    My Mood
    Amazed
    Remember too call it correctly
    Question ALL statements! ?
    You're in denial that you're in denial. ?