FORUM ARCHIVED

List of known flags? (and potential use towards a Nudist skill set)

Discussion in 'Modding' started by bluehinter, Apr 10, 2013.

  1. bluehinter

    bluehinter Member

    I'm still busy working on my other mod, but I had a hair-brained idea to create a Nudist skill set which would be the opposite of Unarmed Combat in that it checks to make sure that you're not wearing armor in specific armor slots, before giving you stat bonuses or allowing particular skills to work. It's simple enough that I could hammer out the artwork and probably be done in under a week, but something tells me it probably can't be done using the current architecture.

    Now, I looked through the skillDB.xml and spellDB.xml files for the main game and all three expansion packs and couldn't find any flags that seemed to apply to armor, unless you count <requirements shield="1" /> in the Shieldbearer list of spells.

    Since info on the wiki is sparse, does anybody know if there's a list of all available flags/requirements recognized by the game? And if so, if they can be set to trigger by not having a corresponding item in place. (ex: <requirements legs="0" /> )

    Assuming there was, the skill list I came up with looked something like this:

    Bare Essentials
    Grants a small bonus to health, dodge, haywire, and sneakiness, when not wearing chest armor.

    Going Commando
    A buff that grants a melee power and critical bonus when not wearing pants
    (possibly using <halo name="sprites/sfx/censored/censored"> to create a black box around the player's junkular region)

    The Streak
    Either allows the player to perform a 3-space dash attack like the rutabaga, or a short-lived Nimbleness/Dodge buff that uses <halo name="sprites/sfx/pixel_blur/pixel_blur"> to create the illusion that everything below the player's head is pixeled out and flesh coloured.

    Polar Bear
    Grants Hyperborean resistance and a boost to burliness.

    Au Naturel
    An area effect attack that causes nearby enemies to "make it rain" (by hemorrhaging gold of course) but can only be triggered when not wearing chest armor or pants.

    Let it All Hang Out
    Grants up to six stacking stat bonuses for each of the following item slots that are unoccupied: Helm, chest, waist, legs, feet, and hands (gloves slot, not weapons or rings).


    What do you think... is there any way to pull this off?
     
  2. Spoon God

    Spoon God Member

    I think this is at least partially possible.
    I haven't tried this yet but it's just a thought:
    Make spell A buff the player and then cast spell B, then cast itself again with a 1-turn delay (for the infinite loop).
    Make spell B cancel spell A (and remove any nudist buffs) but requires armour in a specific slot - that should make the spell A buff only there for as long as the player is nude in that slot (or multiple slots if you make multiple spells to check).
    Spell A's buff will be the nudist skill bonus, eg: "a small bonus to health, dodge, haywire, and sneakiness, when not wearing chest armor"
    I'm not entirely sure how spell A would be started off, but perhaps a usable skill that starts streaking (and casts spell A).

    Maybe you could pull it off by making a spell C which has a passive chance whenever you hit/dodge/block to flash your junk at the enemy for a stun or confusion, but it would also secretly cast spell A to start the loop. It's not perfect but it might be better than making the player cast the buff themselves.

    Hope it helps, I support the nudists!
     
  3. Alistaire

    Alistaire Member

    No, you can't check whether there's armour in a slot.
     
  4. Werediggler

    Werediggler Member

    I don't really know much about how it works, but I know that the Swashbucklers mod has item sets. Doesn't that have to involve some sort of armor checking? I think it might be possible, he should talk with Ruigi and Bergstrom.
     
  5. Alistaire

    Alistaire Member

    No. That's with onHitBuffs on the mod's armour. I even made a page on the wiki how that works.