Status
Not open for further replies.

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
172
Reaction score
41
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,153
Reaction score
15,541
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

Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png
Monday December 6th 2021 at 7PM Hawkzombie will stream A Thief's Voyage on his Twitch.

Hawkzombie Twitch

Check it out.​

Forum statistics

Threads
117,166
Messages
1,105,091
Members
153,258
Latest member
ssjmeech
Top