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 297 98 99121 122 Next To the start

old Re: Scripting Questions

DEATHSHEAD
User Off Offline

Quote
1
find=Item-Typ ,chance,max,min,needed Item
The chance, max, min,needed item ar optional tags

MfG DEATHSHEAD

old Re: Scripting Questions

ab6100
User Off Offline

Quote
thank you very much! ,
one more question what would i put in a script to make a $varable = how heavy the player is

old Re: Scripting Questions

xoyv
User Off Offline

Quote
uhhh, hi. i'm kinda new here. i'm wondering that if i download a mod, and only want say... the skills from it, what files would i transfer?

old Re: Scripting Questions

Solve
User Off Offline

Quote
I am trying to make a new item (i started this week whit strandedII so you ahve to excuse me for my non knowlage (and bad english cuz im swe)) that will be a tool for making fire, i did pretty much copy flintstone and torch but i can't get it to work plz someone tell me what im doing wrong

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
### matches
id=121
name=matches
group=tool
icon=gfx\matches.bmp
model=gfx\matches.b3d
scale=0.75
behaviour=blade
mat=wood
weight=100
rate=1000
damage=0
info=an easy and light source of fire
healthchange=0
scrit=start
	//Set on Fire
	on:impact {
		$tmp=impact_class();
		$tmp2=impact_id();
		//Only "torch" and "fireplace"
		if (compare_behaviour($tmp,$tmp2,"torch")+compare_behaviour($tmp,$tmp2,"fireplace")>0){
			//Works only with at least 1 mathces!
			if (playergotitem(121)>0){
				if (gotstate($tmp,$tmp2,"fire")+gotstate($tmp,$tmp2,"eternalfire")>0){
					msg "Already burning";
				}else{
					if (addstate($tmp,$tmp2,"fire")==1){
						statevalue $tmp,$tmp2,"fire",0;
						msg "Fire started",4;
					}else{
						msg "It's too wet!",3;
					}
				}
			}else{
				msg "I need a match",3;
				msg "to start a fire!",3;
				speech "negative";
			}
		}
		freevar $tmp;
		freevar $tmp2;
	}
script=end

edit: ohh.. and offcourse i have made a "matches.b3d" and icon, but only by coping the bandage b3d and making a new skin for it, if you can download the program that you make new 3d objects in plz send me a link.

- agge

old Re: Scripting Questions

Hurri04
Super User Off Offline

Quote
and through my magical crystal ball I now spot your problem... not.
because my crystal ball just broke the other day.
or mybe it never worked at all.


seriously.
some more information about your problem weren't that bad, don't you agree?
what sort of problem is it?
doesn't the item appear ingame?
does the game give you any error report?
or is it just that the item doesn't do anything at all like my magical cristal ball?

old Re: Scripting Questions

Solve
User Off Offline

Quote
xoyv, that depends on the skill if it a skill where you lvl upp from killing units (hunting) you should transfer (replace) units game and skillinfo, though if its woodcutting you should replace objects tree i think...

hurrri, sorry if i where not precis enough =(

bloodshot, Thanks alot!! matches: here i come

edit: sh*t... now the matches look like bandage when its on the ground, maybe becus i did copy the bandage.b3d to make the matches and did a new skin for matches. so how do i change what skin a b3d file uses?

and also are there anywhere i can download a file to make b3d files? (free)
edited 1×, last 05.06.10 08:29:25 am

old Re: Scripting Questions

Solve
User Off Offline

Quote
wow thx, but i dont really get it =P is there any tutorial for this or do i have to figure stuf out myself?

edit: i did take a item alredy made as a test... it didnt load it... so it probably dont work...
edited 1×, last 05.06.10 03:00:45 pm

old Re: Scripting Questions

Zaikantos
User Off Offline

Quote
Hope someone can help me.

I need someone to make a second raptor for me, however:
No riding/taming
It should 'hunt' you even if you are on the other side of the island. Call it a tracer bullet .

If someone can make that for me... Epic thanks

old Re: Scripting Questions

Solve
User Off Offline

Quote
make a exactly the same unit but remove all script (but not the hunt thingy (on:kill {
bla bla bla bla))
then change range to =9999

old Re: Scripting Questions

Zaikantos
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
### Raptor
id=50
name=Hunter
group=animal
icon=gfx\raptor.bmp
model=gfx\raptor.b3d
scale=0.5
colxr=15
colyr=30
behaviour=raptor
health=110
speed=2.5
eyes=10
turnspeed=3.0
attackrange=65
damage=24
ani_idle1=4,8,0.02
ani_move=2,3,0.06
ani_die=8,11,0.05
ani_attack=12,16,0.07
sfx=raptor
rideoffset=5
acceleration=0.08
maxdepth=70
loot=9,3
loot=94,8
loot=95,4
loot=96,1
script=start
	on:kill {
		event "iskill_hunt","global";
	}
script=end

Think you mean like that, but how to change range?

old Re: Scripting Questions

Hecky3
User Off Offline

Quote

Zaikantos has written
### Raptor
id=50
name=Hunter
group=animal
icon=gfx\raptor.bmp
model=gfx\raptor.b3d
scale=0.5
colxr=15
colyr=30
behaviour=raptor
health=110
speed=2.5
eyes=10
turnspeed=3.0
attackrange=65
damage=24
ani_idle1=4,8,0.02
ani_move=2,3,0.06
ani_die=8,11,0.05
ani_attack=12,16,0.07
sfx=raptor
rideoffset=5
acceleration=0.08
maxdepth=70
loot=9,3
loot=94,8
loot=95,4
loot=96,1
script=start
on:kill {
event "iskill_hunt","global";
}
script=end

old Re: Scripting Questions

Zaikantos
User Off Offline

Quote
That just means it can attack you from the other side of the map, not that it comes towards you to attack you...

old Re: Scripting Questions

Hecky3
User Off Offline

Quote
ohh sry...
just write it between the other definitions...
### Raptor
id=50
name=Hunter
group=animal
icon=gfx\raptor.bmp
model=gfx\raptor.b3d
scale=0.5
colxr=15
colyr=30
behaviour=raptor
health=110
speed=2.5
eyes=10
turnspeed=3.0
attackrange=65
damage=24
ani_idle1=4,8,0.02
ani_move=2,3,0.06
ani_die=8,11,0.05
ani_attack=12,16,0.07
sfx=raptor
rideoffset=5
acceleration=0.08
maxdepth=70
loot=9,3
loot=94,8
loot=95,4
loot=96,1
range=99999
script=start
on:kill {
event "iskill_hunt","global";
}
script=end

old Re: Scripting Questions

Zaikantos
User Off Offline

Quote
Wont work outside of fog (test it by editor then put start loc and raptors further and further- not all of them come untill you get closer)...

Any ideas?

old Re: Scripting Questions

Solve
User Off Offline

Quote
Well then i have no idea...

but my question never got answered =(!!

i said:
sh*t... now the matches look like bandage when its on the ground, maybe becus i did copy the bandage.b3d to make the matches and did a new skin for matches. so how do i change what skin a b3d file uses?

also someone who knows how to make an icon for the start folder? if someone can do 1 that looks good plz put it up on the forum, offcourse i will include your name in the credits then, the name of the mod is stranded III modded edition (hehe (hope this is not the wrong topic for this))

old Re: Scripting Questions

Psytechnic
User Off Offline

Quote
You nearly had it right Hecky... Wrong definition though.
Hecky3 has written
ohh sry...
just write it between the other definitions...
### Raptor
...
attackrange=65 << Change this one to 99999
damage=24
ani_idle1=4,8,0.02
ani_move=2,3,0.06
ani_die=8,11,0.05
ani_attack=12,16,0.07
sfx=raptor
rideoffset=5
acceleration=0.08
maxdepth=70
loot=9,3
loot=94,8
loot=95,4
loot=96,1
range=99999 << Not this one
script=start
on:kill {
event "iskill_hunt","global";
}
script=end

old Re: Scripting Questions

Zaikantos
User Off Offline

Quote
Psytechnic, like I said before, it will not come towards you then. It will merely be able to attack you from anywhere...
To the start Previous 1 297 98 99121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview