Forum

> > Stranded II > Maps/Editor > Banana trees no spawn monkeys
Forums overviewStranded II overview Maps/Editor overviewLog in to reply

English Banana trees no spawn monkeys

7 replies
To the start Previous 1 Next To the start

old Banana trees no spawn monkeys

Corvallis5
User Off Offline

Quote
I have a custom map and I want to make it so that Banana Palms don't spawn monkeys would something like
1
2
3
on:changeday {
skipevent;
}
work? how do I do it?

old Re: Banana trees no spawn monkeys

DC
Admin Off Offline

Quote
no it wouldn't work because the monkey-spawning is scripted and no hard-coded event.
this means that you have to change the definition script of the banana palm.

you can use
1
def_free "object",8;
but this will also disable wood spawning when destroying the palm

so instead you can also do this:
1
def_override "object",8,X;
with X being the ID of a script container info that you place on your map with the following content
1
2
3
4
5
6
7
8
// Spawn Trunk
on:kill {
	if (spawntimer("self")>=0){
		event "iskill_wood","global";
		create "item",7,getx("self"),getz("self"),3;
		corona getx("self"),getz("self");
	}
}

old Re: Banana trees no spawn monkeys

DC
Admin Off Offline

Quote
oh.. yeah than you can just open the definition of the banana palm and remove the monkey spawning part from the script. much better solution in your case.

old Re: Banana trees no spawn monkeys

Corvallis5
User Off Offline

Quote
user DC has written
oh.. yeah than you can just open the definition of the banana palm and remove the monkey spawning part from the script. much better solution in your case.


only the map is acrtic, the rest of the mod is normal

old Re: Banana trees no spawn monkeys

lucas is stranded
User Off Offline

Quote
Duuuuuude... You should like... Totally make polar bears grow out of bananas!


Just kidding...


I'm not sure if this would be a good idea (considering I don't know how hard you want your map to be) but you could make the banana palm spawn bananas instead of monkeys, try changing the "unit;" thing for "item" and the monkey ID to the banana's ID.


And if you don't want bazillion bananas in your map you could change the amount of days that takes for a banana to spawn in a palm to say... foreverfuckbillion days so it wouldn't be so easy to get bananas.

I really don't wanna type "banana" anymore.
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewStranded II overviewForums overview