Alright I have searched the forums for implementing flaming items ad nauseum, and I have come up with this:
... It works great - it makes your head flame while wearing it, and I'm pretty sure I could adapt it to weapons too. The problem is, once I have used it in a scene, further access to inventory crashes the game - I think the problem is it tries to display the particles in the menu screen and cannot.
Does ANYBODY know how to fix this? Weeks of plumbing the forums with my limited internet time haven't helped solve the problem.
And besides, if we can pin this down it will be simple for other people to implement it in the future. Any help is appreciated!
Code:
["flaming_armor", "Armor on Flame", [("light_mail_and_plate",0)], itp_merchandise| itp_type_body_armor |itp_covers_legs ,0,
3454 , weight(22)|abundance(100)|head_armor(0)|body_armor(50)|leg_armor(25)|difficulty(5) ,imodbits_armor,
[(ti_on_init_item,
[(try_for_agents, ":agent"),
(get_player_agent_no, ":agent"),
(agent_get_position, pos1, ":agent"),
(try_begin),
(set_position_delta, pos1, 0, 170, 0), #Position, X, Y, Z.
(particle_system_add_new, "psys_torch_fire", pos1),
(try_end),
(try_end)])]],
... It works great - it makes your head flame while wearing it, and I'm pretty sure I could adapt it to weapons too. The problem is, once I have used it in a scene, further access to inventory crashes the game - I think the problem is it tries to display the particles in the menu screen and cannot.
Does ANYBODY know how to fix this? Weeks of plumbing the forums with my limited internet time haven't helped solve the problem.
And besides, if we can pin this down it will be simple for other people to implement it in the future. Any help is appreciated!