Chaosforge Forum

  • April 28, 2024, 08:16
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: [NotBug][0.9.9.6 G MAC] Being Flags  (Read 2929 times)

VANDAM

  • Elder
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 184
    • View Profile
[NotBug][0.9.9.6 G MAC] Being Flags
« on: May 08, 2012, 12:38 »

Tried
 player.flags[BF_BERSERK] = true
And the resistances are 0 + no DR
 player.flags[BF_MODEXPERT] = true
Can't mod U items.

And BF_INV/STAIR/ENV works
« Last Edit: May 11, 2012, 21:18 by tehtmi »
Logged
[16/17] AAo666 left.^W
Deleted and started again.
[4/17] And now I've got AAo666 (hate this challenge very much).

Game Hunter

  • Programmer
  • Local Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1044
  • Looks like game to me.
    • View Profile
    • Channel, the Roguelike
Re: [0.9.9.6 G] Being Flags
« Reply #1 on: May 08, 2012, 12:49 »

player.flags[BF_BERSERK] = true
And the resistances are 0 + no DR
The bonuses attached to the berserk "affect" have all been separated in order to allow for maximum customization. BF_BERSERK only doubles melee damage, which is the only flag-worthy piece: if you want the resistances and speed bonuses, you'll have to include them explicity. For example:
Code: [Select]
player.res_melee = max(player.res_melee + 60, 95)
player.speed = player.speed * 1.5
player.flags[BF_MODEXPERT] = true
Can't mod U items.
This still depends on the unique item itself. BF_MODEXPERT essentially bypasses IF_UNIQUE for the purposes of modding items, but it's still going to limit the player to items that can be modified at all, which (for unique base-game items) are Railgun, BFG10K, and Cybernetic Armor.

Hope this explains things! If you have modding-specific queries, don't hesitate to direct them to this thread, where I hope to eventually compile a FAQ for modder-wannabes.
Logged
I'm just a dude playing a dude disguised as another dude.

Latest LPs: Angband, Delver

VANDAM

  • Elder
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 184
    • View Profile
Re: [0.9.9.6 G] Being Flags
« Reply #2 on: May 08, 2012, 12:55 »

The bonuses attached to the berserk "affect" have all been separated in order to allow for maximum customization. BF_BERSERK only doubles melee damage
Ok, but, there is an item which requires B flag in order to wear it. And i think that after applying BF_BERSERK = true this item should be wearable, but it's not.
 And yes, i know how to wear it using BP or B trait.
P.S. thank you.
« Last Edit: May 08, 2012, 12:57 by VANDAM »
Logged
[16/17] AAo666 left.^W
Deleted and started again.
[4/17] And now I've got AAo666 (hate this challenge very much).

Game Hunter

  • Programmer
  • Local Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1044
  • Looks like game to me.
    • View Profile
    • Channel, the Roguelike
Re: [0.9.9.6 G] Being Flags
« Reply #3 on: May 08, 2012, 13:17 »

Ok, but, there is an item which requires B flag in order to wear it. And i think that after applying BF_BERSERK = true this item should be wearable, but it's not.
 And yes, i know how to wear it using BP or B trait.
Are you certain that the condition specifically requires the BF_BERSERK flag, or does it require that the berserk affect is active? Because those are different checks:
Code: [Select]
player.flags[BF_BERSERK] --player currently has BF_BERSERK flag
player:is_active("brk")  --player currently has berserk affect
If what you're going by is that "it can be worn after consuming a Berserk Pack or after triggering the Berserker trait effect" then it could technically be either condition, although it's more likely that the affect is expected rather than the flag. If you want to give yourself the berserk affect, use this:
Code: [Select]
player:set_affect("brk",50)
This would, for example, give the player 50 actions' worth of the berserk affect.
Logged
I'm just a dude playing a dude disguised as another dude.

Latest LPs: Angband, Delver

VANDAM

  • Elder
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 184
    • View Profile
Re: [0.9.9.6 G MAC] Being Flags
« Reply #4 on: May 08, 2012, 13:27 »

Thanks, yes, i thought that flag == affect, but flag != affect.
And, about those examples, yes, i know how to create this aff. Just wanted to have my screen non-red.
Logged
[16/17] AAo666 left.^W
Deleted and started again.
[4/17] And now I've got AAo666 (hate this challenge very much).
Pages: [1]