So I want a Npc to display(dispbottom or mes command) a certain variable on an array BASED on the permanent value attached on the character. Here's the fake short version of my script:
When the char chooses "Dog" in the menu, 1 will be registered to "Var1". And when the char chooses "Info" in the menu, I want it to display the word "Dog" on the bottom.
The getd command ain't helping me. Please help me guys! Thank you!!
Hello guys! I hope you all a good day!
So I want a Npc to display(dispbottom or mes command) a certain variable on an array BASED on the permanent value attached on the character. Here's the fake short version of my script:
function script Fake_Func { dispbottom "Test"; dispbottom ""+.tmenu$[getd(Var1)]+""; end; } prontera,153,193,6 script Fake_Npc 123,{ menu ""+.tmenu$[1]+"",-, ""+.tmenu$[2]+"",T1, "Info",T2; Var1 = 1; end; T1: Var1 = 2; end; T2: Fake_Func; OnInit: setarray .tmenu$[1],"Dog","Cat"; }When the char chooses "Dog" in the menu, 1 will be registered to "Var1". And when the char chooses "Info" in the menu, I want it to display the word "Dog" on the bottom.
The getd command ain't helping me. Please help me guys! Thank you!!
Link to comment
Share on other sites