Forum

> > Stranded II > Scripts > Scripting Questions
Forums overviewStranded II overview Scripts overviewLog in to reply

English Scripting Questions

2,429 replies
Page
To the start Previous 1 261 62 63121 122 Next To the start

old Re: Scripting Questions

bezmolvie
User Off Offline

Quote
on:drop {
     setat xposition,ypostion,zposition;
}
//Replace The x,y,z positions with the location numbers or variables.

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
@Bloodshot
you shouldn't try to help people, when you've got no idea what you're doing yourself.

@Holy_dragon
I'm not sure if you mean teleporting the player WITHIN a map, or from one map to another, so I'll explain both ways to you.

If you want to teleport the player within a map, you can either use s2 cmd setat (wich teleports a given object/unit/whatever to another object/unit/whatever. The best thing to be used as a target would be an info) or setpos, wich is used the way bloodshot explained.

But if you want to teleport the player between two maps, those ways wont work. You'll have to use s2 cmd loadmap to transfer the player into a completely new map.

old Re: Scripting Questions

lint35
User Off Offline

Quote
Sorry if I seem like I'm spamming or flaming but I'mstill waiting for my question to be answered. I've been waiting for a while but you guys only answered other people's questions. I'm not trying to get in trouble just a little reminder I need some help too >.>

old Re: Scripting Questions

Geree
User Off Offline

Quote
Hi!
Yes, I´m back with another noob question:D
Can you show me a program,wherewith i can make .b3d models?

old Re: Scripting Questions

ohaz
User Off Offline

Quote
Milkshape is used by many people here, but it costs money.

A Free alternative is Blender

old Re: Scripting Questions

Geree
User Off Offline

Quote
hi Im back again:P

I want to do that i can open a Gate when i have a key!

can anyone write me this script? :$

old Re: Scripting Questions

doraj054
User Off Offline

Quote
hey about teleporting stuff

how can I teleport to another map and then go back to my previous map " but everything I made or built is still there"

can anyone tell me

and oh, how can I teleport to another map and still my skills are the same.

old Re: Scripting Questions

doraj054
User Off Offline

Quote
hey can anybody tell me how to make the water transparent
like you can see the bottom part!
pleeeeeeeeeeeeeeeeeeeeeaaaase!!!

old Re: Scripting Questions

Geree
User Off Offline

Quote
I want to do that when I have ex. 3 plums, a native gives me 3 speedpotion, like in the adventure...i want to do this, but not with trade. Can anyone write me the script? Because I used freestored and find, in conversation script, but it didnt work...Pls anyone write me the script... (Sorry for my english:))

old Re: Scripting Questions

doraj054
User Off Offline

Quote
uhhmmmm...
i got problem with the donkey
i copied the script from "GRADIR MOD"
and i read his donkey script and it seems that it needs straw
when taming it and player should be holding the straw when
taming the donkey...

i tried several times.
it's just saying in german that i don't understand.
i think i pressed [E] on the donkey for about 10 minutes.

can any body help me what's wrong with the script?

old Re: Scripting Questions

Tau
User Off Offline

Quote
For your first problem, best position should be on:load .
So the whole script should be
1
2
3
on:load{
	wateralpha 0.5; //try out different values!
}

old Re: Scripting Questions

Geree
User Off Offline

Quote
hi!
i scripted this but it is not work:
1
2
3
4
on:use {
freestored "unit",1,116,1;
find 112,3;
}

it works because it give me the potions like in the adventure and take a plum, but it give me potions when i havent got any plum, too...so what i have to write in the script, to do that it give me potions only when i have a plum?
pls help me!

and sorry for my english again!xD

old Re: Scripting Questions

Firecat
User Off Offline

Quote
@Geree:

After a awful hour of lurking,scripting and testing i got a script based on the seeding system:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
on:use {
		$item=getplayerweapon();
		
		if (count_stored("unit",1,$item)>2){
		
			if ($item==116){
				freestored "unit",1,116,3;
				find 112,3;
			}else{
				speech "negative";
				msg "This arent plums!",3;
			}
		}else{
			speech "negative";
			msg "I need 3 plums in my hand first!",3;
		}
	}

To make it work you must take in your hand the plums and then use the object, in case that you dont have plums in your hand,you dont have 3 plums or more, or they arent plums you will not able to use it.

QUESTION:

¿What the Lightclycle.inf does ?
edited 1×, last 05.04.09 06:23:45 am

old Re: Scripting Questions

The Second
User Off Offline

Quote
Is it possible to make: Lions hunt (and kill) other animals like kiwis??
edited 1×, last 09.04.09 04:51:48 pm

old Plum to potion script

Someone Evil
User Off Offline

Quote
This script should work

[code]

on:use {
     if (playergotitem(116)<1) {
          freestored "unit",1,116,1;
          find 112,3;
     } else {
          msg "I need some plums";
     }
}
To the start Previous 1 261 62 63121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview