Forum

> > Stranded II > General > Kidnap Mod
ForenübersichtStranded II-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Kidnap Mod

547 Antworten
Seite
Zum Anfang Vorherige 1 25 6 727 28 Nächste Zum Anfang

Umfrage Umfrage

You want it sooner without map or later even with map?

Nur registrierte Benutzer können abstimmen
Sooner!
19,40% (39)
With map!
73,13% (147)
NEVER, bother off!!!
7,46% (15)
201 Stimmen abgegeben

alt Re: Kidnap Mod

HudaJan
Super User Off Offline

Zitieren
MrCowThing hat geschrieben
You'll just need to add some code to the acorn I think. Look at the code for meat, and bananas.

Yes, I did.. Unfortunatly, it is about the behaviours...

alt Re: Kidnap Mod

Flying Lizard
User Off Offline

Zitieren
Actually I don't think you need something like the plague behaviour. The monkeys don't eat the bananase lying around, too

alt Re: Kidnap Mod

HudaJan
Super User Off Offline

Zitieren
Flying Lizard hat geschrieben
Actually I don't think you need something like the plague behaviour. The monkeys don't eat the bananase lying around, too

I know, I'd like acorns to be "eat signals" only for squirrels... But I don't know how...
And I didn't speak about "plague" behaviour..

alt Re: Kidnap Mod

Flying Lizard
User Off Offline

Zitieren
oh you mean feeding them like the raptor and the monkeys?
Did you have a look at how DC solved it? If you've already tryed, post your script here.

alt Re: Kidnap Mod

HudaJan
Super User Off Offline

Zitieren
Flying Lizard hat geschrieben
oh you mean feeding them like the raptor and the monkeys?
Did you have a look at how DC solved it? If you've already tryed, post your script here.

I didn't try it, cause I know I can't do my own behaviours.. But I'd do it like that:
Assign monkey bahaviour to the squirrel and to acorn script ai_signal.. And as a behaviour-monkey... It would cause that monkey will eat acorn and squirrels will eat bananas, but I can't see another way... Or is there some?

alt Re: Kidnap Mod

HudaJan
Super User Off Offline

Zitieren
Aaa! It doesn't work. And I DO NOT understand why?? I tried it on the monkey and it worked! I tried also to change squirrel's behaviour to monkey and tame it with bananas and it DIDN'T work!!! It doesn't work only with that DAMNED squirrel... It is eating but it doesn't want to get tamned!!

alt Re: Kidnap Mod

HudaJan
Super User Off Offline

Zitieren
Flying Lizard hat geschrieben
How about jsut posting the script so we can help you?

ok, but..I copied it from banana and changed something...

### Acorn
id=136
name=Acorn
group=food
icon=gfx\acorn.bmp
model=gfx\acorn.b3d
mat=wood
behaviour=throw
weight=1
damage=0
speed=15
drag=1.8
scale=0.15
info=acorn. Hmm.. I'm not going to eat this, but maybe somebody is...
script=start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
on:drop {
		ai_typesignal "eat",19,300;
	}
	on:drop {
		ai_behavioursignal "eat","monkey",300;
	}
	on:ai_eat {
		local $eater,$var,$b;
		$eater=ai_eater();
		if (type("unit",$eater)==19){
			$var=getlocal("unit",$eater,"tameness");
			$var+=2;
			setlocal "unit",$eater,"tameness",$var;
			$a=getlocal("unit",$eater,"acorns");
			$a++;
			setlocal "unit",$eater,"acorns",$a;
			if (($var>6)&& (gotstate("unit",$eater,"tame")==0)){
				addstate "unit",$eater,"tame";
				corona getx("unit",$eater),getz("unit",$eater),20,255,70,100;
				speech "positive";
				msg "I tamed it!",4;
			}
		}
	}
script=end

But asI said.. It worked with monkey... Problem is probably in the unit.... The unid doesn't want to get tamned...

alt Re: Kidnap Mod

Gast

Zitieren
HudaJan hat geschrieben
### Acorn
id=136
name=Acorn
group=food
icon=gfx\acorn.bmp
model=gfx\acorn.b3d
mat=wood
behaviour=throw
weight=1
damage=0
speed=15
drag=1.8
scale=0.15
info=acorn. Hmm.. I'm not going to eat this, but maybe somebody is...
script=start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
on:drop {
		ai_typesignal "eat",[b]19[/b],300;
	}
	on:drop {
		ai_behavioursignal "eat","monkey",300;
	}
	on:ai_eat {
		local $eater,$var,$b;
		$eater=ai_eater();
		if (type("unit",$eater)==[b]19[/b]){
			$var=getlocal("unit",$eater,"tameness");
			$var+=2;
			setlocal "unit",$eater,"tameness",$var;
			$a=getlocal("unit",$eater,"acorns");
			$a++;
			setlocal "unit",$eater,"acorns",$a;
			if (($var>6)&& (gotstate("unit",$eater,"tame")==0)){
				addstate "unit",$eater,"tame";
				corona getx("unit",$eater),getz("unit",$eater),20,255,70,100;
				speech "positive";
				msg "I tamed it!",4;
			}
		}
	}
script=end

But asI said.. It worked with monkey... Problem is probably in the unit.... The unid doesn't want to get tamned...


Did you replaced the bolded Type-IDs...? I think, there have to be type-id 136 as it is declared above...


1
2
3
### Acorn
[b]id=136[/b]
name=Acorn

But I'm not sure... (can't test it now...)

alt Re: Kidnap Mod

Gast

Zitieren
Mc Leaf hat geschrieben
HudaJan hat geschrieben
### Acorn
id=136
name=Acorn
group=food
icon=gfx\acorn.bmp
model=gfx\acorn.b3d
mat=wood
behaviour=throw
weight=1
damage=0
speed=15
drag=1.8
scale=0.15
info=acorn. Hmm.. I'm not going to eat this, but maybe somebody is...
script=start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
on:drop {
		ai_typesignal "eat",[b]19[/b],300;
	}
	on:drop {
		ai_behavioursignal "eat","monkey",300;
	}
	on:ai_eat {
		local $eater,$var,$b;
		$eater=ai_eater();
		if (type("unit",$eater)==[b]19[/b]){
			$var=getlocal("unit",$eater,"tameness");
			$var+=2;
			setlocal "unit",$eater,"tameness",$var;
			$a=getlocal("unit",$eater,"acorns");
			$a++;
			setlocal "unit",$eater,"acorns",$a;
			if (($var>6)&& (gotstate("unit",$eater,"tame")==0)){
				addstate "unit",$eater,"tame";
				corona getx("unit",$eater),getz("unit",$eater),20,255,70,100;
				speech "positive";
				msg "I tamed it!",4;
			}
		}
	}
script=end

But asI said.. It worked with monkey... Problem is probably in the unit.... The unid doesn't want to get tamned...


Did you replaced the bolded Type-IDs with the right type-id of your creature...?

alt Re: Kidnap Mod

HudaJan
Super User Off Offline

Zitieren
ok the first 19 was because I tried it with monkey as I said you(id 19) but there is another one I can see I didn't change it. I'll try it and reply
EDIT: IT WORKS! Thanks again mc_leaf

alt Re: Kidnap Mod

Mc Leaf
Super User Off Offline

Zitieren
Simple... (wondering about solving it even though I'm very tired right now... )

alt Re: Kidnap Mod

Gregg
User Off Offline

Zitieren
Hows it going with the mod? I keep viewing the slide shows, and I'm like "Hurry up! I need my fix!"

Well, I suppose if its high quaility it will take a bit longer
So, how long do you think it will take?

-Gregg cookie

alt Re: Kidnap Mod

HudaJan
Super User Off Offline

Zitieren
Ok, right now, I have some scripting comlications and I don't have so much time during the week. But it IS almost done.. I'll find time on the weekend and after it should be really close to final version...

alt Re: Kidnap Mod

HudaJan
Super User Off Offline

Zitieren
So
I've finished Squirrel
Also added Oak tree,
wich spawns Acorns,
You can collect acorns and throw it to squirrel, so it gets tamned and you'll get Tamned Squirrel. Also new unit. Very similar to normal squirrel, but it's following you and it's slower, so easer to hunt
If you want, I'll shot and upload a video...

alt Re: Kidnap Mod

DC
Admin Off Offline

Zitieren
oh yeah. please! I would love to see this
Zum Anfang Vorherige 1 25 6 727 28 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtStranded II-ÜbersichtForenübersicht