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 279 80 81121 122 Nächste Zum Anfang

alt Re: Scripting Questions

bezmolvie
User Off Offline

Zitieren
on:drop{
if (inrange ("object", MountDoomID)){
free "self",1;
}
}

Put this in the ring. If the Mount is in range by 30 S2 units (whatever they are), it'll disapeer. I hope.

alt Re: Scripting Questions

amstel bier9
User Off Offline

Zitieren
Bloodshot hat geschrieben
on:drop{
if (inrange ("object", MountDoomID)){
free "self",1;
}
}

Put this in the ring. If the Mount is in range by 30 S2 units (whatever they are), it'll disapeer. I hope.


thanks...
i'm going to try now.

an ather question... what script i need if i want that when an item dropped spawn eagles...
1× editiert, zuletzt 21.11.09 17:37:00

alt Re: Scripting Questions

bezmolvie
User Off Offline

Zitieren
on:drop{
$x=getx ("self");
$z=getz ("self");
$id=create ( "unit", 45,$x,$z);
}

The var $id is the id of the eagle you just spawned, so you can use that, and if you want the item to dissapeer, put
free "self",1; in the script.

alt Re: Scripting Questions

amstel bier9
User Off Offline

Zitieren
Bloodshot hat geschrieben
on:drop{
$x=getx ("self");
$z=getz ("self");
$id=create ( "unit", 45,$x,$z);
}

The var $id is the id of the eagle you just spawned, so you can use that, and if you want the item to dissapeer, put
free "self",1; in the script.


thanks buddy
one question whats wrong with this?


page=start
title=Native
text=start
All hail!
I be native of island.
What want?
text=end
button=trade,I want to trade!
button=info,What can you tell about the island?
button=action:close,Nothing, bye!

page=trade
title=Trade with native
### Bread -> Stones
trade=start
sell=44,1
buy=23,5
trade=end
### Bread -> Leafes
trade=start
sell=44,1
buy=15,15
trade=end
### Bread -> Lianas
trade=start
sell=44,1
buy=26,3
trade=end
### Bread -> Branches
trade=start
sell=44,1
buy=24,10
trade=end
### Bread -> Trunk
trade=start
sell=44,1
buy=7,1
trade=end
### Bread -> Wool
trade=start
sell=44,2
buy=48,3
trade=end
### Bread -> Iron
trade=start
sell=44,3
buy=85
trade=end
### Bread -> Strong Healherb
trade=start
sell=44,4
buy=18,1
trade=end
### Bread -> Spears
trade=start
sell=44,5
buy=52,10
trade=end
button=action:close,Goodbye!

page=info
title=Native
text=start
I made map of island.
You allowed to look at but I not give to you.
You want to see?
text=end
button=script:map,Yes! Show the map!
button=trade,No, I just want to trade.
button=action:close,No, I'm off. Bye.
1× editiert, zuletzt 22.11.09 17:26:08

alt Re: Scripting Questions

bezmolvie
User Off Offline

Zitieren
You should save this as a text file and put this in the native on:use{
dialogue "PATH OF SAVED FILE", "start";
}

alt Re: Scripting Questions

JadeStone
User Off Offline

Zitieren
is it possiable to make things that are sprites like doom 2 like ie: the imp in doom 2 i would kinda like to extract him and messaround with it in stranded but i have made doom 2 mods and i want to add my stranded like creatures.

alt Help

SLY3152
User Off Offline

Zitieren
can anyone give a stealing script to be applied for many units and like fishing stealing skill also increases

alt Re: Scripting Questions

The Oracle File
User Off Offline

Zitieren
>How to make a moving map indigator (moves with an animal) or is it possible?

Only in MP, cause the game is paused while taking a look at the map

alt Re: Scripting Questions

Hecky3
User Off Offline

Zitieren
@the Second:
At first sorry for my bad english...
Here the solution:
You should use
s2 cmd setat
into a time trigger...
i think it works but im not sure...

EDIT: Oracle File was faster...

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
DontKnowToScript hat geschrieben
i dont think so.
i got a question:is there any FREE program that can create b3d?
really need it,much units at my mind.


Try blender or milkshape
but milkshape aint free

alt Re: Scripting Questions

DontKnowToScript
User Off Offline

Zitieren
thanks...
but,i dont understnad blender...what is that square at the start...
and how do i export to b3d....
1× editiert, zuletzt 29.11.09 19:55:41

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
DontKnowToScript hat geschrieben
thanks...
but,i dont understnad blender...what is that square at the start...
and how do i export to b3d....


you can use anim8or to make models and then export them
using blender or milkshape
there is another one known as Deled

alt Re: Scripting Questions

Lakensis
User Off Offline

Zitieren
it's possible to modify the easy-endlessgame putting an end when i reach a determined distance from the river with the sailraft?
if it's possible, can someone tell me how i do that?
Thanks

alt Re: Scripting Questions

bezmolvie
User Off Offline

Zitieren
if ((getx ("self")>=mapsize) OR ($getz ("self")>=mapsize){
msg "You Win!";
//put whatever else you would like here
}

Put this in player script, and it should work. The only problem is checking difficulty, you should probably put a var in the easy.inf and check it here.
Zum Anfang Vorherige 1 279 80 81121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht