lint35 has written
Can you give me an example? 

pirate script
on:use
loadmap {DIRECTORY} 1,1,1,1,1 (stuff to export to different map)
Scripts
Scripting Questions
S stuff files) and do printscreen , then edit, and resize in some paint.net, or smth else?


id=700
name=Luxury Fishing Rod
group=tool
icon=gfx\PsyMod\fishingrod.bmp
model=gfx\PsyMod\fishingrod.b3d
scale=1.5
mat=iron
weight=1200
info=A luxurious fishing rod which allows me to catch bigger fish.
behaviour=fishingrod
damage=3
script=start
	on:attack2 {
		jade 2;
		event "iskill_fish","global";
	}
on:fish_failure {
		$tmp=current_id();
		if (parent_class($tmp)==2){
			if (parent_id($tmp)==1){
				speech "negative";
				msg "I cannot fish here!",3;
			}
		}
	}
on:fish_success {
		$tmp=current_id();
		if (parent_class($tmp)==2){
			if (parent_id($tmp)==1){
				//Bait?
				if ((playergotitem(98)+playergotitem(119))==0){
$tmp2=skillvalue("fish");
					if ($tmp2>=500){
						$tmp3=random(1,6);
						if ($tmp3==1){
							find 109,random(1,3);
							speech "positive";
						}elseif($tmp3==2){
							find 102,random(1,3);
							speech "positive";
						}elseif($tmp3==3){
							find 103,random(1,2);
							speech "positive";
						}elseif($tmp3==4){
							find 520;
							speech "positive";
						}else{
							find 89,random(1,2);
							speech "positive";
						}
					}elseif($tmp2>=200){
						$tmp3=random(1,6);
						if ($tmp3==1){
							find 109,random(1,2);
							speech "positive";
						}elseif($tmp3==2){
							find 102,random(1,2);
							speech "positive";
						}elseif($tmp3==3){
							find 103;
							speech "positive";
						}elseif($tmp3==4){
							find 520;
							speech "positive";
						}else{
							find 89;
							speech "positive";
						}
					}elseif($tmp2>=100){
						$tmp3=random(1,4);
						if ($tmp3==1){
							find 109;
							speech "positive";
						}elseif($tmp3==2){
							find 102;
							speech "positive";
						}elseif($tmp3==3){
							find 103;
							speech "positive";
						}else{
							find 89;
							speech "positive";
						}				
					}elseif($tmp2>=50){
						$tmp3=random(1,4);
						if ($tmp3==1){
							find 109;
							speech "positive";
						}elseif($tmp3==2){
							find 102;
							speech "positive";
						}elseif($tmp3==3){
							find 103;
							speech "positive";
						}
					}elseif($tmp2>=25){
						$tmp3=random(1,6);
						if ($tmp3==1){
							find 109;
							speech "positive";
						}elseif($tmp3==2){
							find 102;
							speech "positive";
						}elseif($tmp3==3){
							find 103;
							speech "positive";
						}
					}
//Use a Bait
				}else{
					//Worm
					if (playergotitem(119)>0){
						freestored "unit",1,119,1;
						msg "Used worm as bait!",1;
					//Insectparts
					}elseif (playergotitem(98)>0){
						freestored "unit",1,98,1;
						msg "Used insect parts as bait!",1;
					}
					//Get Fish?
					$tmp2=skillvalue("fish");
					if ($tmp2>=500){
						$tmp3=random(1,2);
						if ($tmp3==1){
							find 520,random(1,2);
							speech "positive";
						}else{
							find 89,random(1,3);
							speech "positive";
						}
					}elseif($tmp2>=200){
						$tmp3=random(1,2);
						if ($tmp3==1){
							find 520;
							speech "positive";
						}else{
							find 89,random(1,2);
							speech "positive";
						}
						speech "positive";
					}elseif($tmp2>=50){
						$tmp3=random(1,100);
						if ($tmp3<=80){
							find 89;
							speech "positive";
						}
					}elseif($tmp2>=25){
						$tmp3=random(1,100);
						if ($tmp3<=55){
							find 89;
							speech "positive";
						}						
					}else{
						$tmp3=random(1,100);
						if ($tmp3<=40){
							find 89;
							speech "positive";
						}
					}
				}
			}
		}
	}
script=end
healthchange=0
savemap to store the state of the map so you can return to it with the changes you've made.
loadmap to work... I am having troubles with the
savemap because there is a lot of glitches. The player is able to travel to more than one place but how do I save one map if the player is travelling back from one island to another? For example: the player travels from Island1 to Island2 He leaves Island2 and goes to Island 4 then decides he wants to go back to Island 2 but everything is the same as before he was there. Such as items and objects and even Units that the player has killed earlier. Any suggestions?
loadmap to work... I am having troubles with the
savemap because there is a lot of glitches. The player is able to travel to more than one place but how do I save one map if the player is travelling back from one island to another? For example: the player travels from Island1 to Island2 He leaves Island2 and goes to Island 4 then decides he wants to go back to Island 2 but everything is the same as before he was there. Such as items and objects and even Units that the player has killed earlier. Any suggestions?
autosave ,
autoload ?
quicksave,
quickload; page=travel title=Travel Index text=start Where would you like to travel to? text=end script=start 	autosave; script=end button=Market,I want to go to the Market. button=island,I want to go back to my island. button=Docks, I want to visit the docks. button=action:close,Nevermind, don't travel. page=island script=start 	play "magic.wav"; 	loadmap "maps\Farm_1_Testing.S2",1,1,1,1,1,1; 	quickload; script=end page=Market script=start 	play "magic.wav"; 	loadmap "maps\Market_test.S2",1,1,1,1,1,1; 	quickload; script=end
loadmap, if you are using quickload