Chaosforge Forum

DoomRL => Bug Reports => Topic started by: VANDAM on May 08, 2012, 12:38

Title: [NotBug][0.9.9.6 G MAC] Being Flags
Post by: VANDAM 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
Title: Re: [0.9.9.6 G] Being Flags
Post by: Game Hunter 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 (http://forum.chaosforge.org/index.php/topic,4700.0.html), where I hope to eventually compile a FAQ for modder-wannabes.
Title: Re: [0.9.9.6 G] Being Flags
Post by: VANDAM 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.
Title: Re: [0.9.9.6 G] Being Flags
Post by: Game Hunter 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.
Title: Re: [0.9.9.6 G MAC] Being Flags
Post by: VANDAM 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.