Editor Help

Joined
Apr 24, 2006
Messages
9
Reaction score
0
Hi,

I was just wondering if it's possible to use the assignment feature in the editor to save a number in a variable and then have an npc display the value of the variable in their speech... similar to how the lighthaven samaritan will tell you how many rats you have killed.

thanks in advance,
Zydria
 
well they definitely haven't put that into the editor manual so the only two ways i see that it's possible is 1) do a hell of a lot of if's and saytexts (bad) or 2) it's because he's programmed as an extension to the server and loaded in as a dll..
 
Hi,

I was just wondering if it's possible to use the assignment feature in the editor to save a number in a variable and then have an npc display the value of the variable in their speech... similar to how the lighthaven samaritan will tell you how many rats you have killed.

thanks in advance,
Zydria

The samaritan does that by simply reading the value of the flag named Rats Killed ;p flags can be used for storing a value for your variables, read the manual and see :p
 
it's possible, and easy, the only problem is that it takes time... you have to create a IF syntax for each number of rats killed... 1,2,3..10... Than when someone says like "rats killed" to the npc, the npc will say according to the IF value...
 
Back