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 279 80 81121 122 Next To the start

old Re: Scripting Questions

bezmolvie
User Off Offline

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

old Re: Scripting Questions

amstel bier9
User Off Offline

Quote
Bloodshot has written
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...
edited 1×, last 21.11.09 05:37:00 pm

old Re: Scripting Questions

bezmolvie
User Off Offline

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

old Re: Scripting Questions

amstel bier9
User Off Offline

Quote
Bloodshot has written
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.
edited 1×, last 22.11.09 05:26:08 pm

old Re: Scripting Questions

bezmolvie
User Off Offline

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

old Re: Scripting Questions

JadeStone
User Off Offline

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

old Help

SLY3152
User Off Offline

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

old Re: Scripting Questions

The Oracle File
User Off Offline

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

old Re: Scripting Questions

Hecky3
User Off Offline

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

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
DontKnowToScript has written
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

old Re: Scripting Questions

DontKnowToScript
User Off Offline

Quote
thanks...
but,i dont understnad blender...what is that square at the start...
and how do i export to b3d....
edited 1×, last 29.11.09 07:55:41 pm

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
DontKnowToScript has written
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

old Re: Scripting Questions

Lakensis
User Off Offline

Quote
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

old Re: Scripting Questions

bezmolvie
User Off Offline

Quote
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.
To the start Previous 1 279 80 81121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview