About This File
This mod allows you to set some conditions to a player can see or interact with a NPC.
Command:
viewcondition( npc_name, int_variable_name, compare_method, value_1, { value_2 } );
Compara Methods Avaiable:
EVC_LESS - If player variable is < value_1
EVC_EQUALS - if player variable is == value_1
EVC_MORE - if player variable is > value_1
EVC_BETWEEN - if player variable is >= value_1 and <= value_2
EVC_DIFFERENT - if player variable is != value_1
You can apply more than one condition to a npc, but if one condition fail, the npc will not be seeing by the player.
Script Sample:
new_1,55,111,5 Script Lupina#1 10078,{ mes "You can see and talk with me because your @teste variable is less than one!"; next; mes "Now, I will set @teste to 2 and you will no longe see me when goes outsight me or if use @refesh!"; close2; @teste = 2; end; OnInit: viewcondition( strnpcinfo(0), "@teste", EVC_LESS, 1 ); end; }
What's New in Version 1.1.0 See changelog
Released
Fixed a bug that @variables are not working, just permanent char variables.