Does current Ryzom core quest system supports triggering event when health of monster is reduced to certain %?

Added by Andrew about 8 years ago

Does current Ryzom core quest system supports triggering event when health of monster is reduced to certain %?

For example when bandit health reduced to 20% battle stops, bandit say some text, and quest is fulfiled.

Is such described quest possible to set up with current Ryzom core or it needs ryzom core code changes?


Replies (2)

RE: Does current Ryzom core quest system supports triggering event when health of monster is reduced to certain %? - Added by Kane about 8 years ago

addHpDownTrigger_ff_
Registers a trigger on HP decreases. Whenever the HP level of a bot downcross the threshold it triggers the specified user event. Several triggers can be registered on the same group, even with the same threshold and event.

Arguments: f(threshold),f(user_event_n) ->

Parameters:
    [in]     threshold     is a HP threshold
    [in]     user_event_n     is the user event to trigger

more event tiggers and other scripting needs code/ryzom/common/data_leveldesign/leveldesign/world_editor_files/npc/action_type/code.html

(1-2/2)