Status
Not open for further replies.

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
176
Reaction score
44
First Language
English
Primarily Uses
RMMV
Hello! I'd like to transform this simple self switch:
$gameSelfSwitches.setValue([138, 38, 'A'], true)

into a game event id + 1 field --> $gameSelfSwitches.setValue([138, EVENTid+1, 'A'], true)

Look like this won't work:
$gameSelfSwitches.setValue([138, this.eventId()+1, 'A'], true)

How can I script it?

EDIT: I'm dumb. I was missing the ().
You can remove the thread. Sorry.
 
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,196
Reaction score
15,545
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.



I'll leave this thread here and lock it. Even though you solved it yourself before anyone else assisted you, it will still be helpful for other people wanting to manipulate self switches in the future.
 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Well, I've got a party tomorrow, and my friends are coming over. I wanted to work a bit on the Fandom Scouts assets so I can be ready when that update arrives... in other news, Pizza Time Horror is getting a second teaser, and it shows Cabaret Helen's last performance before the location closed.
Also who used to be scared of Chuck E as a kid? I was! Now I love him!
The new cards and what they do:

(I am clearly not a youtuber... Haha)
Just for the record you CAN use the "Exclude unused files" successfully to trim a project down seriously even if you're doing calls to various assets via plugins and such. BUT you need to do a full playtest of pretty much every option to ensure you did get every one of those other assets added in. Then I dumped the assets into a fresh copy of the project and yay it was like 400 Meg......
party time.png
If you've played Knight Shift Chapter 1 this image'll mean something to you. If not, that's also fine!

Forum statistics

Threads
117,269
Messages
1,105,999
Members
153,445
Latest member
sweetchi
Top