Bug - Not A Bug Horsery horses have no numeric_modifiers (or I have no idea how to access them)

Veracity

Developer
Staff member
Here is what we have in modifiers.txt:

Code:
# Horsery
Horsery	normal horse	Initiative: +10, HP Regen Min: 5, HP Regen Max: 10, MP Regen Min: 5, MP Regen Max: 10
Horsery	dark horse	Combat Rate: -5, Drops Meat
Horsery	crazy horse	Muscle Percent: [pref(_horseryCrazyMus)], Mysticality Percent: [pref(_horseryCrazyMys)], Moxie Percent: [pref(_horseryCrazyMox)]
Horsery	pale horse	Cold Resistance: +1, Hot Resistance: +1, Sleaze Resistance: +1, Spooky Resistance: +1, Stench Resistance: +1
Here is how you access it in ASH:

Code:
[color=green]> ash string_modifier( "Horsery:dark horse", "Modifiers" )[/color]

Returned: Combat Rate: -5, Drops Meat

[color=green]> ash numeric_modifier( "Horsery:dark horse", "Combat Rate" )[/color]

Returned: -5.0

Visiting The Horsery

[color=green]> ash numeric_modifier( "Horsery:crazy horse", "Mysticality Percent" )[/color]

Returned: 3.0
 

Malibu Stacey

Active member
Wow thanks Veracity. I guess I should just check modifiers.txt in future (In my defence it was almost 1 AM when I posted that, I should not be trying to code that late).
 
Top