Game Design
Game Design Indonesia .. Forum Untuk Bersama Membuat Game Berkreasi Bersama Bukan Untuk Menyombongkan Diri Saling Berbagi bersama Selebihnya Silahkan Login,Forum
TERIMAKASIH
Lead Forum
Latest topics
» Perkenalan member qornanali
Tue Nov 12, 2013 8:11 am by A|L|F|DGI|Wibie Sultan

» perkenalan
Sun Oct 06, 2013 1:39 pm by A|L|F|DGI|Wibie Sultan

» Apasih Keunggulan Forum Ini
Tue Sep 10, 2013 3:54 pm by Rudy pangabean

» Perkenalan member Bima
Tue Sep 10, 2013 3:52 pm by Rudy pangabean

» Scared 1 Topic
Tue Sep 10, 2013 3:51 pm by Rudy pangabean

» Dynamic Class Changer
Thu Aug 29, 2013 8:26 pm by A|L|F|DGI|Wibie Sultan

» Cache Optimasi
Thu Aug 29, 2013 8:26 pm by A|L|F|DGI|Wibie Sultan

» Miscellaneous Options
Thu Aug 29, 2013 8:25 pm by A|L|F|DGI|Wibie Sultan

» XS battle audio
Thu Aug 29, 2013 8:22 pm by A|L|F|DGI|Wibie Sultan

» Teleport free
Thu Aug 29, 2013 8:20 pm by A|L|F|DGI|Wibie Sultan

» Interacting System
Thu Aug 29, 2013 8:15 pm by A|L|F|DGI|Wibie Sultan

» NEO MENU SYSTEM V1.04
Thu Aug 29, 2013 8:10 pm by A|L|F|DGI|Wibie Sultan

» Rules update script
Thu Aug 29, 2013 7:57 pm by A|L|F|DGI|Wibie Sultan

» VX ace (Tikus system)
Thu Aug 29, 2013 7:52 pm by A|L|F|DGI|Wibie Sultan

» Ask update script RPG maker
Tue Aug 27, 2013 9:08 pm by AssJikom

December 2018
MonTueWedThuFriSatSun
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Calendar Calendar

Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

Most users ever online was 10 on Tue Jul 30, 2013 10:58 pm
Top posting users this week

Social bookmarking

Social bookmarking digg  Social bookmarking delicious  Social bookmarking reddit  Social bookmarking stumbleupon  Social bookmarking slashdot  Social bookmarking yahoo  Social bookmarking google  Social bookmarking blogmarks  Social bookmarking live      

Bookmark and share the address of Game Design on your social bookmarking website

Twitter Forum

recently twittered on Forumotion


Story Teller

Go down

default Story Teller

Post by A|L|F|DGI|Wibie Sultan on Wed Aug 07, 2013 10:04 pm

Ada Seemes menjadi permintaan yang besar untuk percakapan pengantar .... jadi saya tergores satu dari besar (tapi mati) proyek fantasi saya:

< Code Scipt >:
;Artificial Intelligence Script

by TheStoryteller01 2012

;Header

desc=

This script only works with FPSC 1.18 or later

Made for dynamic entities that talk to the player.

To start the script at any time, the player has to move the crosshair over the NPC and press <Enter>.
THIS SCRIPT IS DIFFERENT - IT STARTS WHEN THE PLAYER IS CLOSE ENOUGH TO THE NPC AND CAN BEE SEEN:


;Triggers

:state=0:state=1

:state=1,shotdamage=1:state=290
:state=1,plrcanbeseen,plrdistwithin=150:etimerstart,state=11

;//NPC
:state=11,shotdamage=1:state=290
:state=11:rotatetoplr
:state=11:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=11:fpgcrawtext=Don't Attack! I only want to get out!
:state=11,etimergreater=500,plrusingaction=1:plrdisable=0,state=15
:state=11,etimergreater=5000:plrdisable=0,state=12

;//NPC
:state=12,shotdamage=1:state=290
:state=12:rotatetoplr
:state=12:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=12:fpgcrawtext=
:state=12,pickobject=1,plrusingaction=1:plrdisable=0,state=15


:state=15,shotdamage=1:state=290
:state=15:etimerstart,plrdisable=100000,rotatetoplr,state=21

;//PLAYER
:state=21:fpgcrawtextsize=26,fpgcrawtextfont=verdana,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=21:fpgcrawtext=What are you doing down here?
:state=21,etimergreater=500,plrusingaction=1:plrdisable=0,state=25
:state=21,etimergreater=5000:plrdisable=0,state=25

:state=25:etimerstart,plrdisable=100000,rotatetoplr,state=31

;//NPC
:state=31:rotatetoplr
:state=31:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=31:fpgcrawtext= Templar - I don't want to fight you. These spiders badly wounded me.
:state=31,etimergreater=500,pickobject=1,plrusingaction=1:plrdisable=0,state=35
:state=31,etimergreater=5000:plrdisable=0,state=35

:state=35:etimerstart,plrdisable=100000,state=41

;//PLAYER
:state=41:fpgcrawtextsize=26,fpgcrawtextfont=verdana,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=41:fpgcrawtext=You are one of the Blood Queen's mercenaries. Why shall I spare you?
:state=41,etimergreater=500,plrusingaction=1:plrdisable=0,state=45
:state=41,etimergreater=5000:plrdisable=0,state=45

:state=45:etimerstart,plrdisable=100000,state=51

;//NPC
:state=51:rotateheadrandom=10
:state=51:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=51:fpgcrawtext=I am Dunir the Dwarf - not a mercenary.
:state=51,etimergreater=500,plrusingaction=1:plrdisable=0,state=55
:state=51,etimergreater=5000:plrdisable=0,state=55

:state=55:etimerstart,plrdisable=100000,state=61

;//NPC
:state=61:rotateheadrandom=20
:state=61:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=61:fpgcrawtext=I was only hired as a miner to find a way down to the tombs!
:state=61,etimergreater=500,plrusingaction=1:plrdisable=0,state=65
:state=61,etimergreater=6000:plrdisable=0,state=65

:state=65:etimerstart,plrdisable=100000,state=71

;//PLAYER-CHOICE OF 3
:state=71:fpgcrawtextsize=26,fpgcrawtextfont=verdana,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=71:fpgcrawtext=<F1>I am listening.  <F2>Just get out of my way.  <F3>Fight!
:state=71,etimergreater=100000:state=71
:state=71,etimergreater=500,scancodekeypressed=59:etimerstart,state=81
:state=71,etimergreater=500,scancodekeypressed=60:plrdisable=0,state=125
:state=71,etimergreater=500,scancodekeypressed=61:plrdisable=0,state=290

;//NPC
:state=81:rotateheadrandom=20
:state=81:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=81:fpgcrawtext=Give me your word you let me go and I might have valuable information for you.
:state=81,etimergreater=500,plrusingaction=1:plrdisable=0,state=85
:state=81,etimergreater=5000:plrdisable=0,state=85

:state=85:etimerstart,plrdisable=100000,state=91

;//PLAYER
:state=91:fpgcrawtextsize=26,fpgcrawtextfont=verdana,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=91:fpgcrawtext=Hm...Allright Dwarf. You have my word as a Templar.
:state=91,etimergreater=500,plrusingaction=1:plrdisable=0,state=95
:state=91,etimergreater=5000:plrdisable=0,state=95

:state=95:etimerstart,plrdisable=100000,state=100

;//NPC
:state=100:rotateheadrandom=20
:state=100:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=100:fpgcrawtext=This is a side entrance to the servant's quarters. We cleared the rubble to the next level...
:state=100,etimergreater=500,plrusingaction=1:state=101
:state=100,etimergreater=5000:state=101

:state=101:etimerstart,plrdisable=100000,state=102

;//NPC
:state=102:rotateheadrandom=20
:state=102:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=102:fpgcrawtext=...and set up camp in one of the larger rooms. All went well until we disturbed a swarm of spiders.
:state=102,etimergreater=500,plrusingaction=1:state=103
:state=102,etimergreater=5000:state=103

:state=103:etimerstart,plrdisable=100000,state=104

;//NPC
:state=104:rotateheadrandom=20
:state=104:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=104:fpgcrawtext=The Blood Queen sent her Captain to find their lair and destroy them - but he never came back.
:state=104,etimergreater=500,plrusingaction=1:state=105
:state=104,etimergreater=5000:state=105

:state=105:etimerstart,plrdisable=100000,state=108

;//NPC
:state=108:rotateheadrandom=20
:state=108:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=108:fpgcrawtext=Instead the spiders suddenly attacked us like crazy.
:state=108,etimergreater=500,plrusingaction=1:state=109
:state=108,etimergreater=5000:state=109

:state=109:etimerstart,plrdisable=100000,state=110

;//NPC
:state=110:rotateheadrandom=20
:state=110:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=110:fpgcrawtext=The Blood Queen fled with her personal guards down to the tombs and left the rest of us to die.
:state=110,etimergreater=500,plrusingaction=1:state=111
:state=110,etimergreater=5000:state=111

:state=111:etimerstart,plrdisable=100000,state=112

;//PLAYER
:state=112:fpgcrawtextsize=26,fpgcrawtextfont=verdana,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=112:fpgcrawtext=And where is that 'valuable information' you talked about?
:state=112,etimergreater=500,plrusingaction=1:plrdisable=0,state=113
:state=112,etimergreater=5000:state=113

:state=113:etimerstart,plrdisable=100000,state=114

;//NPC
:state=114:rotateheadrandom=20
:state=114:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=114:fpgcrawtext=The Captain had fabricated some oil bombs before he left - and he didn't take all of them with him.
:state=114,etimergreater=500,plrusingaction=1:state=115
:state=114,etimergreater=5000:state=115

:state=115:etimerstart,plrdisable=100000,state=116

;//NPC
:state=116:rotateheadrandom=20
:state=116:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=116:fpgcrawtext=He left them in his chest along with some other equipment.
:state=116,etimergreater=500,plrusingaction=1:state=117
:state=116,etimergreater=4000:state=117


:state=117:etimerstart,plrdisable=100000,state=118

;//NPC
:state=118:rotateheadrandom=20
:state=118:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=118:fpgcrawtext=The chest is in a locked room on the first level. Find the Captain and you will probably find his key.
:state=118,etimergreater=500,plrusingaction=1:state=119
:state=118,etimergreater=4000:state=119

:state=119:etimerstart,plrdisable=100000,state=120

;//PLAYER
:state=120:fpgcrawtextsize=26,fpgcrawtextfont=verdana,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=120:fpgcrawtext=Is that all?
:state=120,etimergreater=500,plrusingaction=1:plrdisable=0,state=121
:state=120,etimergreater=4000:state=121

:state=121:etimerstart,plrdisable=100000,state=122

;//NPC
:state=122:rotateheadrandom=20
:state=122:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=122:fpgcrawtext=Yes that is all. And now keep your word Templar.
:state=122,etimergreater=500,plrusingaction=1:state=123
:state=122,etimergreater=4000:state=123

:state=123:etimerstart,plrdisable=100000,state=124

;//PLAYER
:state=124:fpgcrawtextsize=26,fpgcrawtextfont=verdana,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80
:state=124:fpgcrawtext=I trust you - for now. Safe travels Dwarf.
:state=124,etimergreater=500,plrusingaction=1:plrdisable=0,state=125
:state=124,etimergreater=4000:plrdisable=0,state=125

:state=125,shotdamage=1:state=290
:state=125:etimerstart,state=126

;//NPC
:state=126,shotdamage=1:state=290
:state=126:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15
:state=126:fpgcrawtext=Good luck Templar.
:state=126,etimergreater=500,plrusingaction=1:plrdisable=0,state=127
:state=126,etimergreater=4000:state=127

:state=127:fpgcrawtextoff
:state=127,shotdamage=1:state=290

;//NPC WALKING WAYPOINTS AND VANISHING - You need to set up 4 waypoints for the script to work
:state=200,shotdamage=1:state=290
:state=200:waypointstart,animate=92,state=210

:state=210,shotdamage=1:state=290
:state=210,waypointstate=3:waypointnext,animate=92,state=220

:state=220,shotdamage=1:state=290
:state=220,waypointstate=3:waypointnext,animate=92,state=230

:state=230,shotdamage=1:state=290
:state=230,waypointstate=3:waypointnext,animate=92,state=240

:state=240,shotdamage=1:state=290
:state=240,waypointstate=5:destroy

;//NPC ATTACKS THE PLAYER
:state=290:runfpi=people\dwarfattack.fpi

;End of Script
Singkatnya script ini melakukan hal berikut:
- Ketika pemain masuk ke berbagai NPC, percakapan dimulai
- Selama percakapan pemain tidak bisa bergerak.
- Itu adalah diri berjalan hingga pemain memiliki pada satu titik untuk memutuskan bagaimana untuk menjawab (= kunci yang menekan)
- Pemain bisa mempercepat percakapan dalam menekan <enter>
- Player dan garis NPC berbeda melalui warna dan posisi
- Pemain mendapatkan pilihan tempat untuk terus berbicara, pergi jalan, atau melawan
- Pada akhir NPC berjalan bersama waypoints ke pintu dan lenyap
- Pemain dapat menyerang NPC sebelum percakapan, ketika ia ditawarkan pilihan di antara dan setelah percakapan ketika NPC berjalan pergi (script kemudian menggunakan RUNFPI =).

Saya tidak benar-benar puas dengan penempatan dan warna dari baris teks (biru muda atas untuk NPC, turun biru cerah bagi pemain) tetapi harus memberikan awal yang baik untuk semua orang.



___________We Are Designer Indonesia_____________
Wibie sultan ID
http://Scaredjsl.blogspot.com
@Wibie_sulthan
FB: Game Designer Bandung Indonesia
8) Basketball 
afro 


I Know I Not Perfect :0| 
But I Have You My friends
avatar
A|L|F|DGI|Wibie Sultan
Administrator
Administrator

Gemini Jumlah posting : 236
Thanks/Like Post : 31
Join date : 2013-06-26
Lokasi : Indonesia,bandung
Humor : We All Work Together

View user profile http://designgameindonesia.indonesianforum.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum