• ✨ 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

How To Make The Policeman Effect To Work?

Status
Not open for further replies.

Shou Liengod

Active Member
Trusted Support
Im Wondering How I Can, Lets Say, Fix This?

Since Pokeditor isnt helping me to make a Certain character Appear in a Register Sequence and Not Register Sequence, Im doing it by Code.

I Want To Know If Theres a problem to These Files.....

I'v Been Trying to get this to Work but i'v got no luck :'[
Im using 1 Script File to have 1 NPC From 1 Location to the Next and leaving it in that location Permenatly.

Help?
 

Attachments

DracoHouston

Kolben Developer
Contributor
whats the policeman effect?

for npcs that need to appear at some point that you dont want visible you put them under the ground, and use the :mad:Warp: command in script to bring to where they need to be when you need them
 

BakaOnibi

Trainer
Donator
Im using 1 Script File to have 1 NPC From 1 Location to the Next and leaving it in that location Permenatly.
To have a person moved permanently, you already have the right code in Quest1.txt
Code:
@NPC:register(cherrygrove.dat|4|position|12,0,8)
This will make the NPC with ID '4' appear at the position 12,0,8 whenever the map is loaded.
Of course this won't make him move straight away if you are currently on the map, so you will have to use whatever combination of the commands:
@Turn
@Move
@Warp
to get the NPC to the right position.
 

Shou Liengod

Active Member
Trusted Support
what im tring to do is this,

have 1 NPC stay in one spot in a town.
you cant activate it until you get the Badge in Violet City.
once optain, its activated.
you go back andtalk to the NPC, you keep talking to it and will eventually walk away and go to its destination.

what im trying to do it after, i don want the NPC to appear In CherryGrove after the Events has been donee. and have only the NPC to only appear in barktown0.dat map.

if i need to use the @Warp command, how do i use it properly to activate the NPC to disappear in 1 location to the next?
 

DracoHouston

Kolben Developer
Contributor
what im tring to do is this,

have 1 NPC stay in one spot in a town.
you cant activate it until you get the Badge in Violet City.
once optain, its activated.
you go back andtalk to the NPC, you keep talking to it and will eventually walk away and go to its destination.

what im trying to do it after, i don want the NPC to appear In CherryGrove after the Events has been donee. and have only the NPC to only appear in barktown0.dat map.

if i need to use the @Warp command, how do i use it properly to activate the NPC to disappear in 1 location to the next?
look at the NPCs ID subtag in the maps, thats the first argument for move, turn and warp commands in the script, like so
Code:
:@Move:id of the npc to move,distance to move as a whole number
examples:
Code:
:@Move:2,5
you can move the player too
Code:
:@Move:player,3
turn works the same way but it makes the character rotate 90, 180 or 270 degrees (in one direction only)
example:
Code:
:@Turn:1,2
warp has 4 arguments, character then x y and z values of a position to warp to in the map
example:
Code:
@Warp:3,45,0,8
this is silver's script in cherrygrove.
Code:
:if:not register(rival_encounter_cherrygrove)
:then
:end
:endif
@Music:johto_rival_appear
@Warp:3,45,0,8
@Turn:3,1
@Move:3,9
@Turn:3,2
@Turn:Player,1
@Text:...*You got a POKeMON~at the LAB.*What a waste!~A wimp like you!*...*Don't you get what~I'm saying?*Well, I too, have a~good POKeMON.*I'll show you what~I mean!
:if:register(starter1)
:then
@NPC:register(elmlab.dat|2|remove|1)
@Battle:trainer,rival_0_fire
:endif
:if:register(starter2)
:then
@NPC:register(elmlab.dat|3|remove|1)
@Battle:trainer,rival_0_water
:endif
:if:register(starter3)
:then
@NPC:register(elmlab.dat|1|remove|1)
@Battle:trainer,rival_0_grass
:endif
@Music:johto_rival_appear
@Text:My name's ???.*I'm going to be~the world's greatest~POKeMON trainer.
@Turn:3,1
@Move:3,8
@Warp:3,42,-2,2
@Register:elm_police
@Unregister:rival_encounter_cherrygrove
@NPC:register(elmlab.dat|5|position|4,0,2)
@Music:cherrygrove
:end
 

Shou Liengod

Active Member
Trusted Support
I know how to Move the NPC and Player during cutscenes.
but.. i havnt looked at the Rival Scripts for Reference....
let me see if this would work.
 

BakaOnibi

Trainer
Donator
So you want an NPC to disappear from one map and appear on another?

You can't make an NPC move from one map to another, so you're going to need an NPC on each map. On both maps the NPC needs to be in the position that it will first be in, the position they start in before any changes/progress is made. If the person shouldn't appear on the map, just put them underneath.

So this will be done in two steps: removing the NPC from the first map and moving the NPC on the second map.

To remove an NPC:
Code:
@NPC:register(cherrygrove.dat|4|remove|1)
To move an NPC:
Code:
@NPC:register(barktown0.dat|4|position|12,0,8)
 
Status
Not open for further replies.
Top