Forum

> > Stranded II > Scripts > Scripting Questions
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripting Questions

2.429 Antworten
Seite
Zum Anfang Vorherige 1 261 62 63121 122 Nächste Zum Anfang

alt Re: Scripting Questions

bezmolvie
User Off Offline

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

alt Re: Scripting Questions

Flying Lizard
User Off Offline

Zitieren
@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.

alt Re: Scripting Questions

lint35
User Off Offline

Zitieren
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 >.>

alt Re: Scripting Questions

Geree
User Off Offline

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

alt Re: Scripting Questions

ohaz
User Off Offline

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

A Free alternative is Blender

alt Re: Scripting Questions

Geree
User Off Offline

Zitieren
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? :$

alt Re: Scripting Questions

doraj054
User Off Offline

Zitieren
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.

alt Re: Scripting Questions

doraj054
User Off Offline

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

alt Re: Scripting Questions

Geree
User Off Offline

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

alt Re: Scripting Questions

doraj054
User Off Offline

Zitieren
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?

alt Re: Scripting Questions

Tau
User Off Offline

Zitieren
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!
}

alt Re: Scripting Questions

Geree
User Off Offline

Zitieren
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

alt Re: Scripting Questions

Firecat
User Off Offline

Zitieren
@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 ?
1× editiert, zuletzt 05.04.09 06:23:45

alt Re: Scripting Questions

The Second
User Off Offline

Zitieren
Is it possible to make: Lions hunt (and kill) other animals like kiwis??
1× editiert, zuletzt 09.04.09 16:51:48

alt Plum to potion script

Someone Evil
User Off Offline

Zitieren
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";
     }
}
Zum Anfang Vorherige 1 261 62 63121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht