Forum

> > Stranded II > General > Kidnap Mod
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Kidnap Mod

547 replies
Page
To the start Previous 1 25 6 727 28 Next To the start

Poll Poll

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

Only registered users are allowed to vote
Sooner!
19.40% (39)
With map!
73.13% (147)
NEVER, bother off!!!
7.46% (15)
201 votes cast

old Re: Kidnap Mod

HudaJan
Super User Off Offline

Quote
MrCowThing has written
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...

old Re: Kidnap Mod

Flying Lizard
User Off Offline

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

old Re: Kidnap Mod

HudaJan
Super User Off Offline

Quote
Flying Lizard has written
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..

old Re: Kidnap Mod

Flying Lizard
User Off Offline

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

old Re: Kidnap Mod

HudaJan
Super User Off Offline

Quote
Flying Lizard has written
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?

old Re: Kidnap Mod

HudaJan
Super User Off Offline

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

old Re: Kidnap Mod

HudaJan
Super User Off Offline

Quote
Flying Lizard has written
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...

old Re: Kidnap Mod

Guest

Quote
HudaJan has written
### 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...)

old Re: Kidnap Mod

Guest

Quote
Mc Leaf has written
HudaJan has written
### 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...?

old Re: Kidnap Mod

HudaJan
Super User Off Offline

Quote
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

old Re: Kidnap Mod

Mc Leaf
Super User Off Offline

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

old Re: Kidnap Mod

Gregg
User Off Offline

Quote
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

old Re: Kidnap Mod

HudaJan
Super User Off Offline

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

old Re: Kidnap Mod

HudaJan
Super User Off Offline

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

old Re: Kidnap Mod

DC
Admin On Online

Quote
oh yeah. please! I would love to see this
To the start Previous 1 25 6 727 28 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview