- Joined
- Jul 2, 2014
- Messages
- 89
- Reaction score
- 39
- First Language
- English
I'm using SumRndmDde's Summon Core plugin to...well, create a summon skill. What I would like to achieve is that the skill summons a different actor depending on the terrain type (tileset) of the map. From poking around, I think that information is in gameMap._tilesetId for me to evaluate. The question then is how I can implement it. Obviously, some of this stuff I can just start typing into my database and blindly test, but that takes time to keep changing things and rebooting so I figure I'd ask first.
I figure the way to do this is to have the skill call a common event, which will evaluate the tileset and set a variable to be used as the actor ID I'm summoning.
1) How can I tell from reading through a plugin whether a given notetag field accepts Javascript? He says explicitly that several of his notetag fields do, but he doesn't mention about the field to specify the actor you're summoning. If I can just use that one notetag and say the actor being summoned is the variable I'm using in the common event, that would be easiest.
2) How can I activate a skill from inside an event? I see commands to set skills and such, but not to activate one, but I figure there must be a script function call for it. The less-desirable option would be to make a different summoning skill for every possible tileset, have one that the player learns, and that calls a common event which activates one of the other skills depending on the player's tileset.
I figure the way to do this is to have the skill call a common event, which will evaluate the tileset and set a variable to be used as the actor ID I'm summoning.
1) How can I tell from reading through a plugin whether a given notetag field accepts Javascript? He says explicitly that several of his notetag fields do, but he doesn't mention about the field to specify the actor you're summoning. If I can just use that one notetag and say the actor being summoned is the variable I'm using in the common event, that would be easiest.
2) How can I activate a skill from inside an event? I see commands to set skills and such, but not to activate one, but I figure there must be a script function call for it. The less-desirable option would be to make a different summoning skill for every possible tileset, have one that the player learns, and that calls a common event which activates one of the other skills depending on the player's tileset.

