Codice: //############################################################ //#### Ideato e creato da Tom Bombadil se volete usare #### //#### questo script lasciate questa intestazione(tanto #### //#### so che nessuno lo fa mai ^_^ ) #### //############################################################ [EVENTS e_control_stats] ON=@itemDClick src.f_effetti_finiti if !() && !() && !() IF > // Strength Cap SRC.STR= ENDIF endif if !() && !() && !() IF > // Dexterity Cap SRC.DEX= ENDIF endif if !() && !() IF > // Intelligence Cap SRC.INT= ENDIF endif Questa e la stone per settare i valori massimi Codice: //############################################################ //#### Ideato e creato da Tom Bombadil se volete usare #### //#### questo script lasciate questa intestazione(tanto #### //#### so che nessuno lo fa mai ^_^ ) #### //#### Stone che permette di selezionare i valori massimi #### //#### raggiungibili per ogni singola stats. #### //############################################################ [ITEMDEF i_stats] DEFNAME=i_STATS ID=i_grave_stone NAME=Scegli le tue Stats ON=@Create COLOR=32 TYPE=t_normal ON=@dclick SRC.DIALOG d_stats return 1 [DIALOG d_stats] 0, 0 noclose resizepic 100 40 5120 380 365 gumppic 50 20 10440 gumppic 160 290 2444 gumppic 260 290 2444 gumppic 360 290 2444 text 125 50 955 0 text 125 70 955 1 text 125 90 955 2 text 125 110 955 11 text 125 130 955 12 text 125 150 955 13 text 265 110 955 3 text 265 130 955 4 text 265 150 995 5 text 125 170 995 6 text 125 190 995 7 text 125 210 995 8 text 125 230 995 9 text 125 250 995 10 text 170 313 995 11 text 260 313 995 12 text 355 313 995 13 textentry 180 291 50 20 100 0 3 textentry 280 291 50 20 100 1 4 textentry 380 291 50 20 100 2 5 button 255 345 1149 1148 1 0 0 [DIALOG d_stats TEXT] Le Stats devono raggiungere un massimo di 225 Al momento i tuoi limiti sono questi : -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Ora dovrai selezionare i Valori di Forza , di Destrezza e Intelligenza. Se il valore esce dal massimo, il tuo inserimento non sara' accettato. I valori non potranno comunque superare 120 Forza Destrezza Intelligenza [DIALOG d_stats BUTTON] ONBUTTON=0 IF ( + + ) > 225 SRC.SYSMESSAGE La somma non deve superare 225 rifai i calcoli return 1 ELSE IF > 120 SRC.TAG.FORZA = 120 ELSE SRC.TAG.FORZA = > ENDIF IF > 120 SRC.TAG.DESTREZZA = 120 ELSE SRC.TAG.DESTREZZA = > ENDIF IF > 120 SRC.TAG.INTELLIGENZA= 120 ELSE SRC.TAG.INTELLIGENZA= > ENDIF ENDIF