Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Nirran

Pages: 1 [2] 3 4 ... 7
16
Help / create item / delete item
« on: November 17, 2023, 03:55:49 am »
i want to delete elerium and alien alloys on map enter,then create them with the amounts i choose,that possible?

17
Help / Re: Prevent Chryssalid Insta Kill
« on: November 16, 2023, 11:02:42 pm »
you need scripthook "damageSpecialUnit"
in which you should modify variable "transform_chance".


Thnx Dude

question: this obviously isnt the entirte hook list,mind dirrecting me to the complete list?

Code: [Select]
    Unit scripts
        recolorUnitSprite: Runs for every pixel of a units graphic. Change to any color.
        selectUnitSprite: Runs for every part of a units graphic. E.g. Change the graphic used for legs.
        selectMoveSoundUnit: Runs for each unit step.
        reactionUnitAction: Runs when an unit performs an action that triggers reaction fire.
        reactionUnitReaction: Runs when a unit sees another unit perform an action that triggers reaction fire.
        hitUnit: When a unit is hit it allows adjusting damage and the part of the body it affects. Runs before damageUnit
        damageUnit: Used to alter the final change to stats of a unit when its hit by a weapon. If unit receives a hit with 0 power this script doesnt run.
        healUnit: Used to alter effect of medikit on unit. Can alter exp from usage of it.
        createUnit: Runs when new unit is created
        newTurnUnit: Runs for every unit every turn (this includes alien, civilian and xcom turns)
        returnFromMissionUnit: Runs for every unit at the end of a mission.
        awardExperience: Runs whenever a unit performs an action that can earn it experience.
        visibilityUnit: Runs to check if two units of opposing factions can see each other.
    Item scripts
        recolorItemSprite: Runs for every pixel of sprite. Change color.
        selectItemSprite: Run to change the graphic of an item when its on the floor or in the hands of a soldier
        reactionWeaponAction: Runs for the weapon that triggered reaction shots by firing.
        createItem: Runs when a new item is created.
        newTurnItem: Runs for each item each turn. (this includes alien, civilian and xcom turns)
    Stat bonus scripts
        For armors: psiDefence, meleeDodge, recovery (time, energy, morale, health, stun, mana)
        For items: damageBonus, meleeBonus, accuracyMultiplier, meleeMultiplier, throwMultiplier, closeQuartersMultiplier
        For units: applySoldierBonuses: Runs once for each bonus of each soldier on mission start.

seems oxce has alot of variations of get/set

edit: what is the correct synthax to get/set transform_chance?

edit2: typo

18
Help / Prevent Chryssalid Insta Kill
« on: November 16, 2023, 06:36:22 am »
my script triggers on the hit but soldier dies anyway,looked at script ,donno what to look for

any way to prevent the transformation with scripts?4

19
Help / Re: way to get is unconscious?
« on: November 15, 2023, 11:43:07 pm »
Yes, it should work
thought it would be fine,wanted to double check,thnx for help and reply

20
Released Mods / Re: [WIP][OXCE][UFO] X-Com: Terror From the Unknown (TFTU)
« on: November 15, 2023, 11:36:06 pm »
crashed,just started playing,first UFO

edit : now it crashed when i tried to equip craft

21
Released Mods / Re: xcom1 and xcom2 mod?
« on: November 15, 2023, 11:28:21 pm »
been looking,any in mod that only combines water missions with xcom1?

currently using TFTU but it has alot of stuf added

22
Help / Re: way to get is unconscious?
« on: November 15, 2023, 04:49:49 am »
`to_health` is not health, same with stun. this is change of given stat or be precise "damage to X".

And what Meridian said still hold, unit is stunned when stun excess health. You have current health, stun and change to both.
You need calculate future version to know it.
Some thing like this:
Code: [Select]
var int status 0;
var int temp 0;
unit.getHealth temp;
add status temp;
unit.getStun  temp;
sub status temp;
sub status to_health;
sub status to_stun;
if gt status 0;
#code
end;
not tested, could be some typos here.


Thnx Dude you've been a great help,does this math look correct?seems to be working

Code: [Select]
          unit.getHealth Health;                 # get current health
          sub Health to_health;                  # sub projected hp loss from current hp
          #debug_log "Unit Health:" Health;     
         
          unit.getStun stunLevel;                # set var to unit stun level
          add stunLevel to_stun;                 # add projected stun level to current stun level
          #debug_log "Unit Stun:" stunLevel;       
         
          if gt stunLevel Health;

23
Help / Re: way to get is unconscious?
« on: November 15, 2023, 12:08:20 am »
what stun lvl knocks out the soldier?

cause this is what i just got when a soldier was knocked unconscious

Code: [Select]
[14-11-2023_14-06-22] [DEBUG] Script debug log: Unit Health: 27
[14-11-2023_14-06-22] [DEBUG] Script debug log: Unit Stun Level: 13

and this is the code

Code: [Select]
          debug_log "Unit Health:" to_health;
          debug_log "Unit Stun Level:" to_stun;  
          if gt to_stun to_health;

edit: typo

24
Help / Re: way to get is unconscious?
« on: November 14, 2023, 08:46:42 pm »

25
Help / Re: way to get is unconscious?
« on: November 14, 2023, 07:34:04 pm »
If you want to modify these, you need:
Code: [Select]
set to_Health temp;

What Is the exact sythax to get to_stun to_health?

this breaks the script

Code: [Select]
          to_Health temp;
          to_Stun stunLevel;

26
Help / Re: adding research entries
« on: November 14, 2023, 07:31:04 pm »
Alright Thnx dude

27
Help / Re: adding research entries
« on: November 14, 2023, 06:45:26 am »
edit : related subject,what file says wheather or not a research is repeatable?mod im playing repeats interrogate research

i think this is the reason,these are randomly selected if i understood the explaination,once they all awarded it wil cease to be resaerchable?

Code: [Select]
    getOneFree:
      - STR_INFILTRATOR
      - STR_FIGHTER
      - STR_EXCAVATOR
      - STR_SMALL_SCOUT
      - STR_MEDIUM_SCOUT
      - STR_LARGE_SCOUT
      - STR_HARVESTER
      - STR_ABDUCTOR
      - STR_TERROR_SHIP
      - STR_BATTLESHIP
      - STR_SUPPLY_SHIP

28
Help / Re: way to get is unconscious?
« on: November 14, 2023, 12:00:24 am »
You have them allready. You can modify them, though.

my code is it correct?

edit : tried it again,it breaks the script

29
Help / Re: way to get is unconscious?
« on: November 13, 2023, 08:05:04 pm »
what is the correct way to get these ?

Code: [Select]
          to_Health temp;
          to_Stun stunLevel;

30
Suggestions / forum suggestion
« on: November 13, 2023, 12:50:36 am »
hope this is the correct forum

anyway,how about adding 'view sent messages' to user profile?

Pages: 1 [2] 3 4 ... 7