DRL > Bug Reports
[NotBug][0.9.9.6 G MAC] Being Flags
(1/1)
VANDAM:
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
Game Hunter:
--- Quote from: VANDAM on May 08, 2012, 12:38 --- player.flags[BF_BERSERK] = true
And the resistances are 0 + no DR
--- End quote ---
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: ---player.res_melee = max(player.res_melee + 60, 95)
player.speed = player.speed * 1.5
--- End code ---
--- Quote from: VANDAM on May 08, 2012, 12:38 --- player.flags[BF_MODEXPERT] = true
Can't mod U items.
--- End quote ---
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.
VANDAM:
--- Quote from: Game Hunter on May 08, 2012, 12:49 ---The bonuses attached to the berserk "affect" have all been separated in order to allow for maximum customization. BF_BERSERK only doubles melee damage
--- End quote ---
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.
Game Hunter:
--- Quote from: VANDAM on May 08, 2012, 12:55 ---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.
--- End quote ---
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: ---player.flags[BF_BERSERK] --player currently has BF_BERSERK flag
player:is_active("brk") --player currently has berserk affect
--- End code ---
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: ---player:set_affect("brk",50)
--- End code ---
This would, for example, give the player 50 actions' worth of the berserk affect.
VANDAM:
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.
Navigation
[0] Message Index
Go to full version