Author Topic: soldier ezperience  (Read 728 times)

Offline Nirran

  • Sergeant
  • **
  • Posts: 18
    • View Profile
soldier ezperience
« on: February 07, 2021, 07:34:50 am »
hello :)

first off this openxcom engine is awesome !!

i am trying to limit how much stats are added at end of missions,please dirrect me to the rellavent  topics

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 6960
  • OXCE developer
    • View Profile
    • My Wiki
Re: soldier ezperience
« Reply #1 on: February 07, 2021, 09:04:49 am »
« Last Edit: February 07, 2021, 09:06:45 am by Meridian »

Offline Nirran

  • Sergeant
  • **
  • Posts: 18
    • View Profile
Re: soldier ezperience
« Reply #2 on: February 07, 2021, 05:49:05 pm »
tyvm !

Offline Nirran

  • Sergeant
  • **
  • Posts: 18
    • View Profile
Re: soldier ezperience
« Reply #3 on: February 07, 2021, 07:25:23 pm »
is this the correct get/set stat functions in scripts?

Code: [Select]
          soldier.Stats.setTimeUnits
         
          soldier.Stats.setStamina

          soldier.Stats.setStamina

          soldier.Stats.setHealth

          soldier.Stats.setBravery

          soldier.Stats.setReactions

          soldier.Stats.setFiring

          soldier.Stats.setThrowing

          soldier.Stats.setStrength

          soldier.Stats.setPsiSkill

          soldier.Stats.setMelee
« Last Edit: February 07, 2021, 07:27:06 pm by Nirran »

Offline Yankes

  • Commander
  • *****
  • Posts: 2518
    • View Profile
Re: soldier ezperience
« Reply #4 on: February 08, 2021, 01:18:49 am »
Yes, but you need remember that `soldier` is name of variable that have solider data of given unit.
In some scripts your code could look like:

Code: [Select]
s.Stats.getStamina temp;
add temp 10; #add some point to current unit stat value
s.Stats.setStamina temp;

Offline Nirran

  • Sergeant
  • **
  • Posts: 18
    • View Profile
Re: soldier ezperience
« Reply #5 on: February 08, 2021, 03:51:16 am »
okie dokie thank you mang

Offline Nirran

  • Sergeant
  • **
  • Posts: 18
    • View Profile
Re: soldier ezperience
« Reply #6 on: February 08, 2021, 11:21:15 am »
ok got it mostly,now need to disable engine stat gains