~/ Hi All ~/
In the second map ("The Mines") the following function is triggered when stepping on one of the squares (this is a standard NPC interaction function, i.e. when you step on the specific square, an NPC picture is shown, and he/she tells you something):
What I'm trying to figure out is the "UnknownFunction". It takes a parameter (in this case 15) and returns a value. In this particular case, if the value returned is greater than 9, the Orc Ranger NPC will ignore us instead of telling us about Cleowyn's lockpick.
My "theory" on this was that it checks character's level, but it doesn't seem to be the case, at least in the offline version of Yserbius.
Does anybody know/remember what triggers an NPC to "ignore" you instead of giving you information?
Best regards,
-PaTchX
In the second map ("The Mines") the following function is triggered when stepping on one of the squares (this is a standard NPC interaction function, i.e. when you step on the specific square, an NPC picture is shown, and he/she tells you something):
Code:
Function NpcOrcRanger
Print( "You encounter an Orc Ranger." )
SetNpcPortrait( NPC_ORC_RANGER )
[COLOR="Navy"]result[/COLOR] = [COLOR="Red"][B]UnknownFunction[/B]( 15 )[/COLOR]
If( [COLOR="navy"]result[/COLOR] > 9 )
Print( [COLOR="DarkGreen"]"The Orc Ranger ignores you and wanders off."[/COLOR] )
Else
Print( [COLOR="darkgreen"]"King Cleowyn had a special lockpick which opened a set of doors "
"in the Vestibule, leading to his Palace. He was the king of thieves,"
"or so my father told me."[/COLOR] )
End If
End Function
My "theory" on this was that it checks character's level, but it doesn't seem to be the case, at least in the offline version of Yserbius.
Does anybody know/remember what triggers an NPC to "ignore" you instead of giving you information?
Best regards,
-PaTchX