|
|
Code FRAGE
#79675
06/27/06 15:06
06/27/06 15:06
|
Joined: Apr 2005
Posts: 2,332 Germany, BaWü
aztec
OP

Expert
|
OP

Expert
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
|
Ich habe hier einen code (sorry für die länge) Code:
var video_mode = 7; var video_depth = 16; string level = <escape.wmb>; bmap zeiger = <pointer.pcx>; string lose = "Da war ein Stück lose"; string lyla = "Hey weist du was wir jetzt machen koennen?"; string antwort1 = "Schau dich um vielleicht findest du ja eine möglichkeit\n um uns hier rauszuhohlen"; string ein_messer = "Ich habe ein Messer gefunden"; string messer_antwort "Gut aber das reicht noch nicht\n Du brauchst noch was. \n Hier kannst du das gebrauchen?"; string alter_1 "Hmm..... ein alter Waschlappen.\n mal sehen für was ich den gebrauchen kann"; string oel "Ich habe mit dem messer reingestochen\nist das Oel?\nDer Lappen ist nun voll mit Oel"; string komplett = "Okay dann lass uns von hier her verschwinden"; string moeglichkeit = "Ich glaube ich habe eine möglichkeit gefunden,\num uns hier rauszuhohlen"; string stock = "hm... einen Stock kann man immer gebrauchen"; sound broeckel = <broeckeln.wav>; font simple = "arial", 0, 30; bmap pfeil1 = <links.pcx>;//linker Pfeil bmap pfeil2 = <rechts.pcx>;//rechter Pfeil bmap leiste = <leiste.pcx>; bmap messer = <shot.pcx>; bmap feuerzeug = <feuerzeug.pcx>; bmap waschlappen = <waschlappen.pcx>; bmap waschlappen2 =<waschlappen2.pcx>; bmap pfeil3 = <unten.pcx>; bmap stocki = <stock.pcx>; var die_info = 0; var stange = 0; var messer_var = 0; var lappen_var = 0; var lappen_var2 = 0; var stocken = 0; entity* messer_cool; entity* gefangstang; // Stagnen entity* komplet;
panel stecken { bmap = stocki; pos_x =450; pos_y =570; layer = 25; }
panel lappen { bmap = waschlappen; pos_x =450; pos_y =530; layer = 24; }
panel lappen2 { bmap = waschlappen2; pos_x =450; pos_y =530; layer = 24; }
panel fire_light // feuerzeug { bmap = feuerzeug; pos_x =250; pos_y =530; layer = 24; }
panel anzeige_brocken //2te anzeige des linken buttons { bmap = leiste; pos_x = 150; pos_y = 525; flags = transparent; button = 0, 0, pfeil2, pfeil2, pfeil2, position_anfang, null, null; layer = 23; }
panel anzeige3 //2te anzeige des linken buttons { bmap = leiste; pos_x = 150; pos_y = 525; flags = transparent; button = 380, 0, pfeil1, pfeil1, pfeil1, position_anfang, null, null; layer = 23; }
panel anzeige2 //2te anzeige des linken buttons { bmap = leiste; pos_x = 150; pos_y = 525; flags = transparent; button = 380, 0, pfeil2, pfeil2, pfeil2, position_anfang, null, null; layer = 23; }
panel anzeige1 //anzeige des linken buttons { bmap = leiste; pos_x = 150; pos_y = 525; flags = visible,transparent; button = 0,0, pfeil1, pfeil1, pfeil1, position, null ,null; button = 380, 0, pfeil2, pfeil2, pfeil2, waschbecken, null, null; button = 200, 0, pfeil3, pfeil3, pfeil3, pos_staebe, null, null; layer = 23; }
panel the_knife { pos_x = 300; pos_y = 530; bmap = messer; layer = 24; }
function pos_staebe { camera.x =-27; camera.y =-117; camera.z =159; camera.pan =33; camera.tilt =-30; camera.roll =0; anzeige1.visible = off; anzeige3.visible = on; stange = 1; gefangstang.invisible = off; }
function position { camera.x =7; camera.y =-78; camera.z =81; camera.pan =261; camera.tilt =6; camera.roll =0; anzeige1.visible = off; anzeige2.visible = on; }
function position_anfang { camera.x =100; camera.y =-63; camera.z =146; camera.pan =180; camera.tilt =0; camera.roll =0; anzeige2.visible = off; anzeige1.visible = on; anzeige3.visible = off; gefangstang.invisible = on; }
function waschbecken // koordinaten waschbecekn { camera.x =24; camera.y =-75; camera.z =77; camera.pan =92; camera.tilt =-10; camera.roll =0; anzeige1.visible = off; anzeige3.visible = on; }
text ein_stock { string = stock; pos_x = 0; pos_y = 0; font = simple; }
function einen_stock { mouse_mode = 0; ein_stock.visible = on; sleep(2); ein_stock.visible = off; ent_remove (me); stecken.visible = on; mouse_mode = 2; stocken = 1; }
text moegl { string = moeglichkeit; pos_x = 0; pos_y = 0; font = simple; }
text raus { string = komplett; pos_x = 0; pos_y = 0; font = simple; }
text alter { string = alter_1; pos_x = 0; pos_y = 0; font = simple; }
text getraenkt { string = oel; pos_x = 0; pos_y = 0; font = simple; }
text brocken { pos_x = 0; pos_y = 0; string = lose; font = simple; }
text man//der was tun wir jezt text { pos_x = 0; pos_y = 0; font = simple; string = lyla; }
text girl { pos_x = 0; pos_y = 100; font = simple; string = antwort1; }
text man2 { pos_x = 0; pos_y = 0; font = simple; string = ein_messer; }
text girl2 { pos_x = 0; pos_y = 100; font = simple; string = messer_antwort; }
bmap fire4_farbe1 = <fire4_red.tga>; VAR lappefeuerAnzahlPartikel = 35.271; //number of particles used for this effect
Function lappefeuer_spec_fun() { my.alpha -= 5 *time; IF(My.alpha < 0) { my.alpha = 0; my.lifespan = 0; } }
Function lappefeuerspezial() { my.blue = 128 ; my.green = 128 ; my.red = 128 ; my.bmap = fire4_farbe1; //the effect bitmap my.vel_x = random( 3 ) - 1.500 ; my.vel_y = random( 7.793 ) - 3.896 ; my.vel_z = random( 3 ); my.size = 8.885 ; my.alpha = 50 ; my.gravity = 0 ; my.streak = off; my.flare = on; my.bright = on; my.beam = off; my.move = on; my.transparent = on; my.function = lappefeuer_spec_fun; }
Function lappefeuer() { while(1) { lappefeuerAnzahlPartikel = 35; effect(lappefeuerspezial,max(1,lappefeuerAnzahlPartikel*time),my.x,nullvector); wait(1); } }
function frau { if(die_info == 0) { mouse_mode = 0; man.visible = on; sleep(3); girl.visible = on; man.visible = off; sleep(3); girl.visible = off; mouse_mode = 1; } if(die_info == 1) { mouse_mode = 0; man2.visible = on; sleep(3); girl2.visible = on; man2.visible = off; sleep(3); girl2.visible = off; fire_light.visible = on; mouse_mode = 1; } if(lappen_var2 == 1 && stocken == 1) { mouse_mode = 0; moegl.visible = on; sleep(2); moegl.visible = off; raus.visible = on; sleep(2); raus.visible = off; camera.x =100; camera.y =-63; camera.z =146; camera.pan =180; camera.tilt =0; camera.roll =0; anzeige2.visible = off; anzeige1.visible = on; anzeige3.visible = off; gefangstang.invisible = on; komplet.invisible = off; } }
function main { level_load (level); mouse_map = zeiger; mouse_mode = 2; while(1) { mouse_pos.x = pointer.x; mouse_pos.y = pointer.y; wait(1); } }
function kill_me { snd_play(broeckel, 100,0); ent_remove(me); brocken.visible = on; camera.x =-18; camera.y =-90; camera.z =81; camera.pan =224; camera.tilt =-2; camera.roll =0; sleep(3); brocken.visible = off; }
function das_messer { ent_remove (me); the_knife.visible = on; die_info = 1; messer_var = 1; }
action messer2 { messer_cool = me; my.invisible = on; }
function metal_stueck { camera.x =-18; camera.y =-46; camera.z =153; camera.pan =135; camera.tilt =8; camera.roll =0; anzeige1.visible = off; anzeige3.visible = on; if(messer_var == 1 && lappen_var == 1) { messer_cool.invisible = off; the_knife.visible = off; mouse_mode = 0; getraenkt.visible = on; sleep(2); getraenkt.visible = off; mouse_mode = 2; lappen.visible = off; lappen2.visible = on; lappen_var2 = 1; } }
function lappen_event { lappen_var = 1; ent_remove(me); lappen.visible = on; mouse_mode = 0; alter.visible = on; sleep(2); alter.visible = off; mouse_mode = 2; }
action lappenstange { komplet = me; my.invisible = on; my.event = lappefeuer; }
action lappen_staub { my.enable_click = on; my.event = lappen_event; }
action block { my.enable_click = on; my.event = kill_me; }
action rohr { my.enable_click = on; my.event = metal_stueck; }
action woman { my.enable_click = on; my.invisible = off; my.event = frau; }
action messer1 { my.enable_click = on; my.event = das_messer; }
action stangen { gefangstang = me; my.invisible = on; }
action collect_stock { my.enable_click = on; my.event = einen_stock; } Und eine frage Ich würde gern den lappeffekt abspielen bei function Frau bei der 3ten if 3 aber erst dann
Visit: schwenkschuster-design.de
|
|
|
Re: Code FRAGE
[Re: aztec]
#79676
06/27/06 15:37
06/27/06 15:37
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
Äh ja ... ? Soll der effekt von da an unendlich lang abspielen? -wenn ja: die function "lappefeuer" im dritten if aufrufen Oder soll der effekt einmal abgespielt werden? -wenn ja: die effect zeile aus der function "lappefeuer" irgendwohin in die function frau (ins dritte if) kopieren Also nicht in die if() zeile sondern in den anweisungsblock danach 
|
|
|
Re: Code FRAGE
[Re: Xarthor]
#79677
06/27/06 15:52
06/27/06 15:52
|
Joined: Apr 2005
Posts: 2,332 Germany, BaWü
aztec
OP

Expert
|
OP

Expert
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
|
Ach ja ich vergaß zu erwähnen das der effekt auf dem Moddel stocklappen dann erscheinen soll  sorry Ich habe das aber mal versucht doch es hat nicht geklappt
Visit: schwenkschuster-design.de
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|