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

June 2018
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

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


Buy Weapon Script

Go down

default Buy Weapon Script

Post by A|L|F|DGI|Wibie Sultan on Fri Aug 09, 2013 10:05 am

Oke, sebagai nama thread ini menunjukkan, saya bekerja pada sistem saya sendiri untuk membeli senjata menggunakan variabel uang, dan yang telah bekerja tidak ada masalah. Masalah saya saat ini muncul ketika saya menambahkan dalam kode yang akan menempatkan sistem slot senjata ke dalam pekerjaan. Aku akan berani garis yang ditambahkan reight sebelum ujian saya gagal script.
< Cuplikan Script >:
;Artificial Intelligence Script

;Header

desc = Buy M16 W/ ACOG Sight for 1750 Points

;Triggers

:state=0:hudreset,hudx=50,hudy=45,hudimagefine=gamecore\huds\user\Survival Game Gun Pickup\buym16withacog.png,hudname=M16acog,hudhide=1,hudmake=display
:state=0:state=1

:state=1,plrdistfurther=50:hudunshow=M16acog
:state=1,plrnotfacing=40:hudunshow=M16acog
:state=1,inview=1,plrfacing=30,plrdistwithin=50:hudshow=M16acog

:state=1,inview=1,plrfacing=30,plrdistwithin=50,varless=cashcounter 1749,keypressed=18 1:state=21
:state=21,plrfacing=30,plrdistwithin=50,keypressed=18 0:state=1

:state=1,inview=1,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 1:state=2
:state=2,varless=weaponcounter 2:state=3
:state=2,varequal=weaponcounter 2:state=4

:state=3,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 0:subvar=cashcounter 1750,state=5,hudunshow=M16acog,playertake,coloff,rundecal=-1,addvar=weaponcounter 1
:state=4,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 0:removecurrentweapon,subvar=cashcounter 1750,state=5,hudunshow=M16acog,playertake,coloff,rundecal=-1

;End Of Script


Pada dasarnya, saya berjalan ke senjata di dinding dan menampilkan HUD untuk membelinya, tapi menekan tombol buy tidak lagi bekerja. Aku tidak tahu apa yang saya lakukan salah, tapi aku yakin itu adalah dengan penambahan slot variabel perintah senjata ke dalam naskah ini bahwa masalah diciptakan. Di bawah ini saya juga akan memasukkan script yang saya gunakan untuk membuat dan menginisialisasi variabel slot senjata dengan nilai awal dari satu untuk senjata awal yang termasuk dalam awal penanda.

< Kode Script >:
;Artificial Intelligence Script

;Header

desc = Creates a Custom Number of Weapon Slots (Maximum of 9) and Gives Intial Value of 1 for Starting Weapon

;Triggers

:state=0:dimvar=weaponcounter
:state=0:addvar=weaponcounter 1

;End Of Script

Seperti biasa, setiap bantuan besar-besaran dihargai, dan saya berniat untuk melepaskan menyelesaikan naskah slot senjata secepat aku bisa memolesnya.

+ Cuplikan Kode:
:state=0:dimvar=weaponcounter
:state=0:setvar=weaponcounter 1,state=1

Pergi ke negara 1 selain itu loop script lubang lagi dan lagi.

Juga versi Wich Anda gunakan? Hal ini sangat penting daripada jika Anda menggunakan 1.2
maka Anda dapat menggunakan plrweaponsgreater dan seterusnya:

+ Cuplikan Kode:
;Artificial Intelligence Script

;Header

desc = Buy M16 W/ ACOG Sight for 1750 Points

;Triggers

:state=0:hudreset,hudx=50,hudy=45,hudimagefine=gamecore\huds\user\Survival Game Gun Pickup\buym16withacog.png,hudname=M16acog,hudhide=1,hudmake=display
:state=0:state=1

:state=1,plrdistfurther=50:hudunshow=M16acog
:state=1,plrnotfacing=40:hudunshow=M16acog
:state=1,plrfacing=30,plrdistwithin=50:hudshow=M16acog
:state=1,plrfacing=30,plrdistwithin=50,varless=cashcounter 1750,keypressed=18 1:state=21
:state=1,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 1:state=2

:state=21,plrfacing=30,plrdistwithin=50,keypressed=18 0:state=1

:state=2,plrweaponslesser=2:state=3
:state=2,plrweaponsequal=2:state=4
:state=3,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 0:subvar=cashcounter 1750,state=5,hudunshow=M16acog,playertake,coloff,rundecal=-1,addvar=weaponcounter 1
:state=4,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 0:removecurrentweapon,subvar=cashcounter 1750,state=5,hudunshow=M16acog,playertake,coloff,rundecal=-1

;End Of Script

Oke, jadi saya telah berjalan dengan baik sekarang, kecuali bahwa ketika saya mengambil pistol, saya tidak punya senjata menunjukkan sampai saya beralih slot senjata, maka bekerja. Saya akan posting script sehingga Anda dapat membuat suntingan lebih lanjut.
+ Cuplikan Kode:
;Artificial Intelligence Script

;Header

desc = Buy M16 W/ ACOG Sight for 1750 Points

;Triggers

:state=0:hudreset,hudx=50,hudy=45,hudimagefine=gamecore\huds\user\Survival Game Gun Pickup\buym16withacog.png,hudname=M16acog,hudhide=1,hudmake=display
:state=0:state=1

:state=1,plrdistfurther=50:hudunshow=M16acog
:state=1,plrnotfacing=40:hudunshow=M16acog
:state=1,inview=1,plrfacing=30,plrdistwithin=50:hudshow=M16acog

:state=1,inview=1,plrfacing=30,plrdistwithin=50,varless=cashcounter 1749,keypressed=18 1:state=21
:state=21,plrfacing=30,plrdistwithin=50,keypressed=18 0:state=1

:state=1,inview=1,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 1:state=2
:state=2,varequal=weaponcounter 1:state=3
:state=2,varequal=weaponcounter 2:state=4
:state=3,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 0:subvar=cashcounter 1750,state=5,hudunshow=M16acog,playertake,coloff,rundecal=-1,addvar=weaponcounter 1
:state=4,plrfacing=30,plrdistwithin=50,vargreater=cashcounter 1749,keypressed=18 0:removecurrentweapon,subvar=cashcounter 1750,state=5,hudunshow=M16acog,playertake,coloff,rundecal=-1

;End Of Script

___________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

default Re: Buy Weapon Script

Post by Rudy pangabean on Wed Aug 21, 2013 11:19 pm

susah bang kasih tau penjelasan yang lebih jelasnya

___________We Are Designer Indonesia_____________
PERBAIKAN DIRI DARI SEMUA YANG KERAS MENJADI
KREATIF IS MY STYLE
IN MY LIFE :D

avatar
Rudy pangabean
Member

Cancer Jumlah posting : 107
Thanks/Like Post : 3
Join date : 2013-07-26
Lokasi : INDONESIA,YOGYAKARTA
Humor : IM HERE FOR LIBERATION

View user profile

Back to top Go down

default Re: Buy Weapon Script

Post by A|L|F|DGI|Wibie Sultan on Thu Aug 22, 2013 7:11 pm

itu saya udah buat sejelas mungkin jika ada kesalahan lihat lagi yang benar

___________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

default Re: Buy Weapon Script

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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