• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Ilex Forest

Status
Not open for further replies.

BakaOnibi

Trainer
Donator
That's what I thought.

The only case of a script in a script I can see in already implemented content is the rival battle in cherrygrove. This appears at the end of the initial script so doesn't really help us.
But as I said earlier, you will need to either ask nilllzz about it or put everything into the initial script. As long as there are no duplicate positions for the player, this should work.
 

JojoP

Pokémon Ranger
I don't know what you mean by putting everything in one script ? If I place all :if:position(Player,x,y,z) in one script it doesn't work ...
 

BakaOnibi

Trainer
Donator
Well, you did know what I meant, but you're right, for some reason it doesn't work. I tried changing the script that I made, the version without all of your movements. It will do the text at the start but it won't use any of the :if statements, and they should work because I just copied them over from scripts that did work.

This is really frustrating.
 

BakaOnibi

Trainer
Donator
*facepalm" Ignore my previous post, I just realised that somehow I had gotten rid of the :then after the :if when I was putting them all into the initial script. So how was yours not working?
If you update the download with all the movements I can try making a new script.
 

JojoP

Pokémon Ranger
Code:
:if:position(Player,21,0,14)
:then
@Text:It's the missing~POKéMON!*FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,1
@Turn:100,2
@Move:100,6
:end
 
:if:position(Player,20,0,22)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,4
:end
:endif
 
:if:position(Player,20,0,20)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,2
@Move:100,2
@Turn:100,1
@Move:100,5
@Turn:100,0
@Move:100,1
:endif
:end
 
:if:position(Player,20,0,18)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,2
@Turn:100,3
@Move:100,1
@Turn:100,0
@Move:100,4
@Turn:100,3
@Move:100,4
:end
:endif
 
:if:position(Player,24,0,11)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,3
@Move:100,2
@Turn:100,2
@Move:100,6
@Turn:100,3
@Move:100,2
@Turn:100,2
@Move:100,1
@Turn,100,0
@Warp:102,30,0,18
@Register:farfetchdDone
@NPC:register(Ilex.dat|100|position|29,0,18)
@NPC:register(Ilex.dat|102|position|30,0,18)
:endif
:end
 
:if:position(Player,15,0,23)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,9
@Turn:100,2
@Move:100,2
:endif
:end
 
:if:position(Player,14,0,22)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,2
@Move:100,1
@Turn:100,3
@Move:100,5
@Turn:100,4
@Move:100,2
:endif
:end
 
:if:position(Player,6,0,23)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,3
@Move:100,9
@Turn:100,0
@Move:100,2
:endif
:end
 
:if:position(Player,7,0,24)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,9
@Turn:100,3
@Move:100,1
:endif
:end
 
:if:position(Player,6,0,15)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,3
@Move:100,6
:endif
:end
 
:if:position(Player,8,0,15)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,1
@Turn:100,0
@Move:100,2
@Turn:100,1
@Turn:100,3
@Turn:100,1
@Turn:100,3
@Turn:100,2
@Move:100,11
:endif
:end
 
:if:position(Player,7,0,14)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,2
@Move:100,3
@Turn:100,1
@Move:100,1
@Turn:100,2
@Move:100,6
:endif
:end
 
:if:position(Player,7,0,16)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,4
@Turn:100,3
@Move:100,4
:endif
:end
 
:if:position(Player,10,0,9)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,3
@Move:100,3
@Turn:100,2
@Move:100,2
@Turn:100,1
@Move:100,1
@Turn:100,2
@Move:100,2
:endif
:end
 
:if:position(Player,13,0,9)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,4
@Turn:100,2
@Move:100,4
:endif
:end
 
:if:position(Player,12,0,15)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,2
@Turn:100,3
@Move:100,1
@Turn:100,0
@Move:100,2
@Turn:100,1
@Move:100,3
:endif
:end
 
:if:position(Player,13,0,16)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,6
:endif
:end
 
:if:position(Player,13,0,14)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,2
@Move:100,2
@Turn:100,3
@Move:100,7
:endif
:end
 
:end
It's not all yet, but most of it
 

BakaOnibi

Trainer
Donator
Ok, I have the movements working:
Code:
:if:position(Player,21,0,14)
:then
@Text:It's the missing~POKéMON!*FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,1
@Turn:100,2
@Move:100,6
:end
:endif
 
:if:position(Player,20,0,22)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,4
:end
:endif
 
:if:position(Player,20,0,20)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,2
@Move:100,2
@Turn:100,1
@Move:100,5
@Turn:100,0
@Move:100,1
:end
:endif
 
:if:position(Player,20,0,18)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,2
@Turn:100,3
@Move:100,1
@Turn:100,0
@Move:100,4
@Turn:100,3
@Move:100,4
:end
:endif
 
:if:position(Player,24,0,11)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,3
@Move:100,2
@Turn:100,2
@Move:100,6
@Turn:100,3
@Move:100,2
@Turn:100,2
@Move:100,1
@Turn,100,0
@Warp:102,30,0,18
@Register:farfetchdDone
@NPC:register(Ilex.dat|100|position|29,0,18)
@NPC:register(Ilex.dat|102|position|30,0,18)
:end
:endif
 
:if:position(Player,15,0,23)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,9
@Turn:100,2
@Move:100,2
:end
:endif
 
:if:position(Player,14,0,22)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,2
@Move:100,1
@Turn:100,3
@Move:100,5
@Turn:100,4
@Move:100,2
:end
:endif
 
:if:position(Player,6,0,23)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,3
@Move:100,9
@Turn:100,0
@Move:100,2
:end
:endif
 
:if:position(Player,7,0,24)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,9
@Turn:100,3
@Move:100,1
:end
:endif
 
:if:position(Player,6,0,15)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,3
@Move:100,6
:end
:endif
 
:if:position(Player,8,0,15)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,1
@Turn:100,0
@Move:100,2
@Turn:100,1
@Turn:100,3
@Turn:100,1
@Turn:100,3
@Turn:100,2
@Move:100,11
:end
:endif
 
:if:position(Player,7,0,14)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,2
@Move:100,3
@Turn:100,1
@Move:100,1
@Turn:100,2
@Move:100,6
:end
:endif
 
:if:position(Player,7,0,16)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,4
@Turn:100,3
@Move:100,4
:end
:endif
 
:if:position(Player,10,0,9)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,3
@Move:100,3
@Turn:100,2
@Move:100,2
@Turn:100,1
@Move:100,1
@Turn:100,2
@Move:100,2
:end
:endif
 
:if:position(Player,13,0,9)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,4
@Turn:100,2
@Move:100,4
:end
:endif
 
:if:position(Player,12,0,15)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,0
@Move:100,2
@Turn:100,3
@Move:100,1
@Turn:100,0
@Move:100,2
@Turn:100,1
@Move:100,3
:end
:endif
 
:if:position(Player,13,0,16)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,1
@Move:100,6
:end
:endif
 
:if:position(Player,13,0,14)
:then
@Text:FARFETCH'D: Kwaa!
@Turn:100,2
@Move:100,2
@Turn:100,3
@Move:100,7
:end
:endif
 
:end

The problem was that you had some :end outside of the :if statements so that it would stop the script before you would reach the correct :if statement.

The problem now is that it seems to come up with a blank text box for each of the :if statements that it skips. I will look into this, hopefully I can figure out a solution.
 

DracoHouston

Kolben Developer
Contributor
With the empty text boxes I can't help you, I couldn't figure out what was causing them to appear.

As for it ignoring the conditions, from the code you posted, it looks like there shouldn't be a problem, I really don't know what to say.
empty boxes are usually a bad command. if the command doesnt parse right it just brings up an empty text box you have to dismiss
 

DracoHouston

Kolben Developer
Contributor
The problem was that you had some :end outside of the :if statements so that it would stop the script before you would reach the correct :if statement.

The problem now is that it seems to come up with a blank text box for each of the :if statements that it skips. I will look into this, hopefully I can figure out a solution.
ah yeah, end is a cool command but for the most part it just goes at the end of a script

for people that dont know, end completely stops execution of the script, you can use it inside of ifs to make the script stop but if you put it everywhere its going to boot you out of the script early
 

Lavalamp15

Starting Trainer
why cant i go past the ilex forest? i have the badge required but every time i go to the door at the end of the ilex forest, it doesn't let me go past the door? help please
 

DracoHouston

Kolben Developer
Contributor
why cant i go past the ilex forest? i have the badge required but every time i go to the door at the end of the ilex forest, it doesn't let me go past the door? help please
i mapped out r34 but nilllzz mustn't have included it in the update. goldenrod isn't done at all yet so there's no where to go past ilex anyway.
 

Failer

Pokémon Ranger
Guys, I would like to help but i don't know what language you're using. I know a bit of PHP and Javascript
 

Darkfire

Administrator
Administrator
P3D Developer
This is an original language being developed by nillzz and is rather straight forward
 

greg

Bug Catcher
wait so goldenrod isnt finished yet? is that why i can not go past that door to goldenrod city yet from ilex forest?
 
Status
Not open for further replies.
Top