- 441
- Posts
- 19
- Years
- Seen Oct 26, 2016
Thanks Metroid P, that'll come in handy but is this the place to post it in?
poccil said:Metroid P said:Is it possible to make trainers which are only fight at Night or Day?
Yes, here is an example of a nightly Trainer:
Event Page 1
Trigger: Action Button
Condition: None
Code:@>[COLOR="#0000FF"]Conditional Branch: Script: Time.now.hour<6||Time.now.hour>=20[/COLOR] @>[COLOR="#000000"]Text: Halt! Who goes there?[/COLOR] @>[COLOR="#0000FF"]Conditional Branch: Script: pbTrainerBattle(PBTrainers::POKeMANIAC,"Andrew",_I("Whoops..."),false,0)[/COLOR] @>[COLOR="#FF0000"]Control Self Switch: A =ON[/COLOR] @> : [COLOR="#0000FF"]Branch End[/COLOR] @> : [COLOR="#0000FF"]Else[/COLOR] @>[COLOR="#000000"]Text: I'm on guard for suspicious activity.[/COLOR] @> : [COLOR="#0000FF"]Branch End[/COLOR] @>
Event Page 2
Trigger: Action Button
Condition: Self Switch A is ON
Code:@>[COLOR="#0000FF"]Conditional Branch: Script: Time.now.hour<6||Time.now.hour>=20[/COLOR] @>[COLOR="#000000"]Text: Oh, sorry. You may proceed.[/COLOR] @> : [COLOR="#0000FF"]Else[/COLOR] @>[COLOR="#000000"]Text: I'm on guard for suspicious activity.[/COLOR] @> : [COLOR="#0000FF"]Branch End[/COLOR] @>
MisterTdK:
Just so you know: In the more recent releases, that error message would be replaced with a message asking whether to add the Trainer.
im not sure about calling the map tho sry$Trainer.pokegear=true
poccil, I don't have the current release, and am not entirely sure on how to update (I have read notes.html).