Status
Not open for further replies.

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
447
Reaction score
81
First Language
Portuguese
Primarily Uses
RMMZ
I need to get ID of a selected skill via script call which then would trigger a common event that will change certain variables based on what u've chosen.
Is it possible?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,954
Reaction score
10,528
First Language
German
Primarily Uses
RMMV
depends on when you want to execute that script call

why not simply trigger the common event directly by skill effect?
please give more details on what you really want to do instead of just how you want to do something unknown and we should be able to tell you how to proceed.
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
447
Reaction score
81
First Language
Portuguese
Primarily Uses
RMMZ
Because I don't want to create a separate common event for each skill. All of the skills will trigger the same one. Then it calculates which have been used and applies effects accordingly.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,954
Reaction score
10,528
First Language
German
Primarily Uses
RMMV
in that case you shouldn't need a script call at all, a simple control variable : game data : last used skill should be enough
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
447
Reaction score
81
First Language
Portuguese
Primarily Uses
RMMZ
Always forget about Game Data :0
Thx, this should work
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,954
Reaction score
10,528
First Language
German
Primarily Uses
RMMV
Always forget about Game Data :0
a lot of people do - or never have even looked at it.
which is one reason why I usually check when someone asks for script calls without details, because a lot of things are easier done by events instead of scripts...
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
447
Reaction score
81
First Language
Portuguese
Primarily Uses
RMMZ
Makes sense. I just got used to using scripts for everything.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
45,485
Reaction score
16,401
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.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I tried a new thing.

fg.png
Another night, another game dev stream in about 20 minutes or so.

I've been busy. Warming up so I don't forget how to draw.
Fr4yy7TaEAUB57Z
I'd make a joke about the post office, but I'm afraid you won't get it.
I've been on a really good streak lately of working on my game for at least a little bit each day. Even if I only complete one small task, it is still a much better pace than what I was maintaining previously!

Forum statistics

Threads
129,785
Messages
1,205,127
Members
170,894
Latest member
Mikartsuun
Top