forums | blogs | polls | tutorials | downloads | rules | help

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in remember_me_form_alter() (line 78 of /var/www/siegetheday.org/sites/all/modules/contrib/remember_me/remember_me.module).

[REQUEST] magic modifier: usable variables list

Hi to all,

I am looking for a list of (globally?) pre-defined variables that I can use in the magic modifier blocks.

So far I have only seen "#item_level" being used as a numeric variable.
In some of the Broken World files I found "#clamped_intel" refenced to in a comment, but not being actively used.

Other variables that I would like to use are those that point to the selected character's stats; for example:
-überlevel
-strength
-dexterity
-intelligence
-melee skill
-ranged skill
-nature magic skill
-combat magic skill
-maximum health
-maximum mana

The reason I am asking, is because I would like to make a few items that use variable modifiers, as opposed to numbered modifiers; i.e. "value = (#nmagic + #cmagic) * 0.01" as opposed to "value = 0.04".

For example: a sword that increases in damage doing potential as your melee skills increase. (Ref: "Valkyrie Sword" in Dungeon Siege 1 - Lands of Hyperborea; sword requires re-equip to reflect changes)

If anyone can help me, their help will be greatly appreciated.

Sharkull's picture

Most of what you're looking for is within the file "components.gas" (somewhere within Logic.ds2res)... See this thread for a look at DS2's version (search for information on the "alteration" block): http://www.siegetheday.org/?q=node/234

You also might benefit from reading the following thread (which discusses variable modifiers, and includes working code examples too): http://www.siegetheday.org/?q=node/296

Note: FYI. The current comment sorting method being used on this forum is to start with the first post at the top, and then continue from the bottom up (easier for reading new stuff, but not so good when looking at older threads...). Stare

BTW... Welcome to SiegeTheDay. :welcome:

Hi Sharkull,

Thank you for your help. The information that you provided was exactly what I had been looking for. =)

Also, thank you for welcoming me to SiegeTheDay. I hope I will be able to make some creative contribution to it some day.

Your note on comment sorting has been acknowledged, and I shall endeavour to take into account whenever I will read posts.

Thanks again.