was mussi ch dann an disen Script verändern:
page=start
title=Eingeborener
text=start
Hallo, ich bin ein Eingeborener, bist du hier gestrandet?
text=end
button=1,Ja
button=action:close,Lass mich in Ruhe
page=1
trade=start
buy=5,1
sell=5,1
trade=end
... trade=start buy=... sell=... trade=end trade=start buy=... sell=... trade=end
on:trigger { count_behaviourinrange "unit", "watercraft"; }
... free "unit", ID???; \\ Habe es so probiert: on:trigger { $einb=count_behaviourinrange "unit", "watercraft"; free "unit", $einb; } \\und so: on:trigger { free "unit", count_behaviourinrange "unit", "watercraft"; }
... trade=start buy=... sell=... trade=end trade=start buy=... sell=... trade=end
$yaw=getyaw(Unit); 	projectile 56, getx("self"), gety("self"), getz("self"), $yaw, 0, 2, 0, 20, 35, 0; 	$yaw-=5; 	projectile 56, getx("self"), gety("self"), getz("self"), $yaw, 0, 2, 0, 20, 35, 0; 	$yaw-=10; 	projectile 56, getx("self"), gety("self"), getz("self"), $yaw, 0, 2, 0, 20, 35, 0; 	$yaw+=20; 	projectile 56, getx("self"), gety("self"), getz("self"), $yaw, 0, 2, 0, 20, 35, 0; 	$yaw=+10; 	projectile 56, getx("self"), gety("self"), getz("self"), $yaw, 0, 2, 0, 20, 35, 0; 	freevar $yaw;
on:trigger{ //Wenn der Spieler im Gebiet ist 	if (riding()>0){ //und er fährt 		$x=riding(); 		if (type("unit",$x) == 31) { //und das gefahrene Ding ein Einbaum ist 			free "unit", $x; //dann lösche den Einbaum 		} 	} }
on:attack1{ 	$yaw=getyaw(Unit, 1); 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw-=5; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw-=10; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw+=20; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw=+10; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	freevar $yaw; }
### Dragon Breath id=126 name=Drachenatem group=elemental icon=gfx\fireball.bmp mat=glass weight=0 info=Elementar: Eine Nahkampf-Magietechnik, die den Gegner einfriert. behaviour=blade weaponstate=6 damage=0 rate=1000 healthchange=0 script=start on:attack1{ 	$element=skillvalue("Elementarmagie"); 	$consume=-60/$element; 	consume 0, 0, $consume, 0; 	freevar $element; 	freevar $consume; 	find 126, 1; 	process "Zaubern", 2000; 	$yaw=getyaw("unit",1); 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw-=5; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw-=10; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw+=20; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw=+10; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	freevar $yaw; } script=end
on:trigger { particle getx("unit",1),gety("unit",1),getz("unit",1),46; } \\ 46= Partikel>Schockwelle
### Dragon Breath id=126 name=Drachenatem group=elemental icon=gfx\fireball.bmp mat=glass weight=0 info=Elementar: Eine Nahkampf-Magietechnik, die den Gegner einfriert. behaviour=blade weaponstate=6 damage=0 rate=1000 healthchange=0 script=start on:attack1{ 	$element=skillvalue("Elementarmagie"); 	$consume=-60/$element; 	consume 0, 0, $consume, 0; 	freevar $element; 	freevar $consume; 	find 126, 1; 	process "Zaubern", 2000; 	$yaw=getyaw("unit",1); 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw-=5; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw-=10; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw+=20; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	$yaw=+10; 	projectile 56, getx("self"), gety("self"), getz("self"), 3, $yaw, 0, 2, 0, 20, 35, 0; 	freevar $yaw; } script=end