A Few NPC scripting questions

Veora

LOMCN Veteran
Veteran
Apr 4, 2005
355
9
64
Right i've done my FIRST npc script and i have two questions
Firstly how do i put a space between two answers? i.E

Code:
[EMAIL="Yes/@item"]Yes/@item[/EMAIL]
[EMAIL="No/@item"]No/@item[/EMAIL]
When they appear they're right next to each other so how can i space em' apart

And secondly, is about Flags
Im going to start my first quest so can anyone simply explain flags ?

Any help will be appretiatied

(and yes i did search =p the flag post i found was really crapply put)
 

Veora

LOMCN Veteran
Veteran
Apr 4, 2005
355
9
64
Its just an example its not my actual coding

I mean when the dialog box comes up it looks like

Hi!, young GAMEMASTER wants some crap

YESNO

So i wanna know how i space em out in the npc script thats all =)

So (and this is my scripting here)
Code:
[@MAIN]
#SAY
Hello Young <$USERNAME>! Would you like to buy some Cheap adventure bundles?\
<Yes/@Class>
<no/@nothanks>
And it comes up with
Hello young bla Would you like some cheap adventure bundles?
YESNO
i wanna know how to space Yes and No apart so there away from each other,
 
Last edited:
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
195
Veora said:
Its just an example its not my actual coding

I mean when the dialog box comes up it looks like

Hi!, young GAMEMASTER wants some crap

YESNO

So i wanna know how i space em out in the npc script thats all =)

So (and this is my scripting here)
Code:
[@MAIN]
#SAY
Hello Young <$USERNAME>! Would you like to buy some Cheap adventure bundles?\
<Yes/@Class>
<no/@nothanks>
And it comes up with
Hello young bla Would you like some cheap adventure bundles?
YESNO
i wanna know how to space Yes and No apart so there away from each other,


If you want them to appear on consecutive lines you need to put a \ after the yes one, if you just want them on the same line then add a lot of spaces after the end of the Yes function.


Flags are on off switches which range from 0 to 999, with values of "Off" is 0 "On" is 1

You can check flags with:

#IF
CHECK [Flag number] Value

and you can set flags with:

SET [Flag number] Value
 
Upvote 0

Veora

LOMCN Veteran
Veteran
Apr 4, 2005
355
9
64
OKay thanks for the help i think i've got the hang of this

Only thing i need to know Is how do i set it so you need Certain Purity Meat/Ore

Oh and also whats the Hp/Mp pot names? (so i can give pots w/ a npc)
 
Upvote 0