Forum

> > Stranded II > Scripts > Diary entries & npc talk
Forums overviewStranded II overview Scripts overviewLog in to reply

English Diary entries & npc talk

3 replies
To the start Previous 1 Next To the start

old Diary entries & npc talk

BountyHunter
User Off Offline

Quote
I know it's stupid question perhaps, but I'd like to know how to write simple script. How to make diary entries & make NPC talk like "that pirate" with buttons of possible answers to their words.

old Re: Diary entries & npc talk

Klirkz
User Off Offline

Quote
The easiest way is probably to place an Info somewhere on the map (e.g. a text container, a flag, ...)
There you should insert the "page=start..." thing in its script.
Example:
Spoiler >


Now this is just a dialogue laying somewhere on the map. But remeber the ID of that Info, so you can put that dialogue in the mouth of any character you wish. Let's say it's 5.

Now insert your dialogue command in that event, that should open the dialogue (if you want it to start with the right click on the pirate, put the on:use event inside the pirate's script):
on:use {
dialogue "start", 5;
}

5 is now the ID of your Info and "start" is your start-page. You could also put there "continue1", if you want your dialogue to begin there... now it's up to your creativity!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview