Author Topic: Some questions  (Read 2539 times)

Offline cevaralien

  • Captain
  • ***
  • Posts: 96
    • View Profile
Some questions
« on: July 21, 2020, 06:12:10 am »
Hi.

1) I'm making a machine gun. In fact, it works, but i have problems with the ufopedia.

My weapon shoots 6 bullets in auto and 3 on snap, but, in ufopedia doesn`t show the (x3), only the (x6) of auto shot. I 'm following the pattern of the X-Com Files mod about BlackOps LMG. In that mod, the ufopedia article is ok,but it doesn't work for me.

Quote
  - type: STR_MACHINE_GUN
    size: 0.3
    costBuy: 3500
    costSell: 2512
    weight: 11
    bigSprite: 7
    floorSprite: 7
    handSprite: 32
    bulletSprite: 2
    fireSound: 4
    compatibleAmmo:
      - STR_MG_AP_AMMO
      - STR_MG_AA_AMMO
    accuracyAuto: 50
    accuracySnap: 60
    accuracyAimed: 80
    tuAuto: 35
    tuSnap: 33
    tuAimed: 70
    battleType: 1
    twoHanded: true
    invWidth: 1
    invHeight: 3
    confSnap:
      shots: 3
    autoShots: 6
    listOrder: 2700
    dropoff: 1
    meleePower: 50
    tuMelee: 33
    accuracyMelee: 100

2) I`m making the alien weapons researchable in two steps. First, they are identified as "Alien Artifact" followed by a number. In the ruleset (research) i'm using the same name of STR_PLASMA_RIFLE, but in ufopedia, the title and the text is different STR_PLASMA_RIFLE_A and STR_PLASMA_RIFLE_A_UFOPEDIA.

The problem is that in ufopedia, it shows the stats of autoshot, snapshot, etc., and when i complete the clip research, it shows the weapon power too.  I want override these data, in fact, i want only the text, title and object image. I can live with the weight value.

It is possible to do that? Notice that the second step is a final tech that shows me the name Plasma Rifle and the stats.

Thanks

Offline cevaralien

  • Captain
  • ***
  • Posts: 96
    • View Profile
Re: Some questions
« Reply #1 on: August 23, 2020, 07:05:26 pm »
I found the answer to this. For anyone who have the same question, you can put this on extraScripts:

Quote
     STR_SHOT_TYPE_AUTO: "Auto (x{0})"
     STR_SHOT_TYPE_SNAP: "Snap (x{0})"
     STR_SHOT_TYPE_AIMED: "Aimed (x{0})"

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Some questions
« Reply #2 on: August 23, 2020, 07:31:06 pm »
I found the answer to this. For anyone who have the same question, you can put this on extraScripts:

That should probably be extraStrings. ;)

Offline cevaralien

  • Captain
  • ***
  • Posts: 96
    • View Profile
Re: Some questions
« Reply #3 on: August 23, 2020, 07:50:53 pm »
Ops, sorry, that's correct.  :-[

I'm trying to do a script and i'm broken my head jejeje.