Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-01-02 05:49:20

Chaos Rush
Member
Registered: 2010-10-16
Post 10/62

Make someone not appear?

I'm trying to re-create the Oak event from the Kanto games in Gold. The problem is, I don't want Oak to be visible until you step on the trigger. I tried looking at flags from other maps that have "invisible" people, such as your rival in Cherrygrove, but if I give the Oak event the same flag properties, he's still visible.

So how do I make someone invisible without calling a script beforehand?

Offline

#2 2011-01-03 21:30:22

Miksy91
Member
Registered: 2010-10-16
Post 252/2,315

Re: Make someone not appear?

There are some people (like the three mothers in your house) who are automatically hidden in the start of the game (a.k.a their flags have to be activated to make them appear). You could try to give Oak the flag that the mom is using and see if he's hidden then.

In the script, you'd just have to make activate the flag.


I'm not sure if this will work but you can at least try :)

Last edited by Miksy91 (2011-01-03 21:30:51)

Offline

#3 2011-01-04 02:05:19

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 411/3,503

Re: Make someone not appear?

You could give him the same flag as one of the farfetched positions in Ilex Forest. They use several and I think all of them are on (hidden) by default. One MAY be off but I think all of them are on.

Offline

#4 2011-01-04 08:50:47

Tauwasser
Member
Registered: 2010-10-16
Post 66/448

Re: Make someone not appear?

Just repoint or replace the init script and put your flag initializations in there. You could put them in a script the player has to pass, but the danger there is always that you forget about that, change the script and the events are screwed.

cYa,

Tauwasser

Offline

#5 2011-01-05 04:10:49

Chaos Rush
Member
Registered: 2010-10-16
Post 12/62

Re: Make someone not appear?

Mateo wrote:

You could give him the same flag as one of the farfetched positions in Ilex Forest. They use several and I think all of them are on (hidden) by default. One MAY be off but I think all of them are on.

Tried all of them, none of them work.

Tauwasser wrote:

Just repoint or replace the init script and put your flag initializations in there. You could put
them in a script the player has to pass, but the danger there is always that you forget about that, change the script and the events are screwed.

cYa,

Tauwasser

That would be nice, but what's the offset of the init script? It's not listed on Data Crystal's rom map. But I think I'll just make the player pass a script...

Last edited by Chaos Rush (2011-01-05 04:10:57)

Offline

#6 2011-01-05 07:04:09

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 412/3,503

Re: Make someone not appear?

I think he means the init script for a map, which you can see the pointers for in Megamap.

Offline

#7 2011-01-05 10:48:44

Tauwasser
Member
Registered: 2010-10-16
Post 67/448

Re: Make someone not appear?

Nope, I meant the init script that is processed for all these flags. It's mentioned in the scripting doc: Command 0x0C with argument 0x0018 will call the init script. You can do whatever you want with it, basically.
Basically, command 0x0C will execute the script pointed to at [40:4000 + 3 * argument].

It gets executed in the script header of Hero's upstairs room, when he enters the first time.

33 CB 06 
33 CE 06 
33 CD 06 
33 D0 06 
33 F3 06 
33 E9 06 
33 EA 06 
33 EB 06 
33 EC 06 
33 ED 06 
33 EE 06 
33 EF 06 
33 F0 06 
33 F1 06 
33 F2 06 
33 F4 06 
33 D5 06 
33 DE 06 
33 DD 06 
33 DF 06 
33 C0 06 
33 E4 06 
33 25 00 
33 BE 06 
33 BF 06 
33 C1 06 
33 F9 06 
33 FD 06 
33 FF 06 
33 00 07 
33 02 07 
33 03 07 
33 04 07 
33 0D 07 
33 0E 07 
33 0F 07 
33 10 07 
33 15 07 
33 16 07 
33 17 07 
33 18 07 
33 19 07 
33 1A 07 
33 1B 07 
33 1C 07 
33 1D 07 
33 1E 07 
33 1F 07 
33 20 07 
33 21 07 
33 22 07 
33 23 07 
33 24 07 
33 25 07 
33 26 07 
33 27 07 
33 28 07 
33 29 07 
33 2C 07 
33 2F 07 
33 2D 07 
33 35 07 
33 36 07 
33 3C 07 
33 3D 07 
33 41 07 
33 42 07 
33 43 07 
33 44 07 
33 A4 02 
33 AF 02 
33 49 07 
33 D3 06 
33 4D 07 
33 12 07 
33 13 07 
33 11 07 
33 D4 06 
33 04 03 
33 07 03 
33 D8 06 
33 C3 06 
33 C2 06 
33 C6 06 
33 5F 07 
33 31 07 
33 4A 07 
33 62 07 
33 38 07 
33 3A 07 
33 3B 07 
33 33 07 
33 3F 07 
33 65 07 
33 66 07 
33 C8 06 
36 0E 00 
36 16 00 

// Set dynamic people event pictures
6C 04 52 
6C 05 04 
6C 06 35 
6C 07 0A 
6C 08 0A 
6C 09 0A 
6C 0A 0A 
6C 0B 28 
6C 0C 28 

33 FB 00 
33 6D 07 
33 6C 07 
33 6E 07 
33 6F 07 
33 73 07 
33 76 07 
33 77 07 
33 79 07 
33 72 07 
33 7B 07 
33 36 00 - Event flag used in Hero's room to check whether this script was executed or not
8F - Exit script, this is called in a script header

cYa,

Tauwasser

Last edited by Tauwasser (2011-01-05 10:51:10)

Offline

Board footer

Powered by FluxBB