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)
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
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