|
Post by prophet on Nov 5, 2024 13:34:14 GMT -6
Good day again, I'm unable to attach images via pm so creating thread here instead trying to add multiple spells to an artifact by way of /articon_changeable_spell"" , spell_id spelldict /name get def , /alt_spell_id spelldict /name get def and /alt_spells_id spelldict begin []end def but to no luck I also tried copying the format of spectral sword, a multiple spell artifact, and injecting the same code lines for my new artifact in the list of files in the attachment, but to no avail I am able to set 2 spells to an artifact through /spell_id and /alt_spell_id but no luck with /alt_spells_id to set 3 or more spells some leads would be appreciated! Attachments:
|
|
|
Post by Boaster on Nov 5, 2024 19:24:28 GMT -6
Try using 'articon_alt_spells' in your artifact.
|
|
|
Post by prophet on Nov 7, 2024 3:40:20 GMT -6
replaced the /articon_changeable_spell"" to /articon_alt_spells"" but it returned blank icon can request additional leads? Attachments:
|
|
|
Post by Boaster on Nov 7, 2024 17:55:33 GMT -6
Post your current artifact code, in a forum code box plz.
|
|
|
Post by prophet on Nov 19, 2024 11:13:27 GMT -6
/image 1 def /faith LIFE def
/name"The One Ring"def /portrait_code"liring"def
/description"The One Ring to Rule them All"def
/description_table
<<
/articon_changeable_spell""
/articon_dexterity"A"
/articon_strength"B"
/articon_health"C"
/articon_wisdom"D"
/articon_missile_speed"E"
/articon_rate_of_fire"F"
/articon_artifact_charges""
/articon_magic_resistance"G"
/articon_luck"H"
/articon_sight_radius"I"
/articon_hit_recovery"J"
/articon_stealth"K"
/articon_barter""
>> def
/val_A{1000}def
/val_B{1000}def
/val_C{1000}def
/val_D{1000}def
/val_E{100}def
/val_F{100}def
/val_G{100}def
/val_H{1000}def
/val_I{100}def
/val_J{100}def
/val_K{100}def
/category 4 def
/wield ARTIFACT_WIELD_EITHER def
/barter_proc{6000}def
/wield_faiths{LIFE}def
/wield_champion_types{WIZARD WARRIOR THIEF}def
; ARTIFACT_TYPE getcurrentartifactdata
; artifact_type
; artifacttype
/begin_turn_proc{refresh_artifact}def
/end_combat_proc
{
100 restore_percent_health
refresh_artifact
}def
/autocalc_end_combat_proc
{
100 restore_percent_health
refresh_artifact
artifactdict begin artifactclassdict /end_combat_proc get exec end
}def
/end_turn_proc{refresh_artifact}def
/wield_mods
<<
/dexterity{val_A add}
/strength{val_B add}
/hit_points{val_C add}
/wisdom{val_D add}
/missile_speed{val_E add}
/attack_recovery_ticks{val_F sub}
/life_resistance{val_G add}
/death_resistance{val_G add}
/order_resistance{val_G add}
/chaos_resistance{val_G add}
/fire_resistance{val_G add}
/water_resistance{val_G add}
/earth_resistance{val_G add}
/air_resistance{val_G add}
/luck{val_H add}
/sight_radius{val_I add}
/get_hit_recovery_ticks{val_J sub}
/stealth_noise_factor{val_K sub}
>> def
/mod_proc
{
/dummy begin
print_artifact_data
artifactdict begin artifactclassdict begin /dummy begin do_modifications end end end
grant_artifact_spell_knowledge?
displayresources
artifactarmy artifactunit set_level_modifications
}/dummy currentdict replace bind def
/unmod_proc
{
artifactarmy artifactunit artifactself MODIFIER_FLAG_FROM_ARTIFACT removeunitmodifiers
displayresources
artifactarmy artifactunit set_level_modifications
}def
/can_be_used true def
/spell_id spelldict /justice get def
/alt_spell_id spelldict /infest_cave get def
/alt_spells_id spelldict begin[wind_mills gold_rush fireworks sanctuary bureaucracy inspire watch_tower infest_cave]end def
/uses_wizard_mana false def
/uses_artifact_mana false def
/max_charges 99 def
/rechargeable? true def
/rechargequantity? 99 def
/rechargeonturn? 1 def
/attack_proc{}def
|
|
|
Post by prophet on Nov 21, 2024 0:18:45 GMT -6
did I post it correctly?
|
|