Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing events, actions and targets #45

Closed
JasperAppec opened this issue Jul 7, 2016 · 10 comments
Closed

Add missing events, actions and targets #45

JasperAppec opened this issue Jul 7, 2016 · 10 comments

Comments

@JasperAppec
Copy link
Collaborator

No description provided.

@el-druida
Copy link

Please, update the editor with the new targets, actions and events :(

@Rushor
Copy link
Contributor

Rushor commented Mar 23, 2017

or at least show me one easy example for implementing a new action/event/target. then i would try to open a pr for all the new action/targets/events :)

@el-druida
Copy link

el-druida commented Mar 23, 2017

Events:
SMART_EVENT_COUNTER_SET

Actions:
SMART_ACTION_MOVE_OFFSET //Once upon a time it was called "move_rise" jaja
SMART_ACTION_RANDOM_SOUND
SMART_ACTION_SET_CORPSE_DELAY
SMART_ACTION_DISABLE_EVADE
SMART_ACTION_GO_SET_GO_STATE
SMART_ACTION_SET_CAN_FLY
SMART_ACTION_REMOVE_AURAS_BY_TYPE
SMART_ACTION_SET_SIGHT_DIST
SMART_ACTION_FLEE
SMART_ACTION_ADD_THREAT
SMART_ACTION_LOAD_EQUIPMENT
SMART_ACTION_TRIGGER_RANDOM_TIMED_EVENT
SMART_ACTION_REMOVE_ALL_GAMEOBJECTS
SMART_ACTION_STOP_MOTION
SMART_ACTION_PLAY_ANIMKIT
SMART_ACTION_END

Targets:
SMART_TARGET_FARTHEST
SMART_TARGET_LOOT_RECIPIENTS
SMART_TARGET_VEHICLE_ACCESSORY
SMART_TARGET_END

@JasperAppec
Copy link
Collaborator Author

I've done three out of the above list as examples, @Rushor. Code-wise they are all the same, the only difference is the parameters and what kind of search forms it requires. Look through existing implementations to find examples of pre-implemented events, actions and targets. That way you can probably figure it out (do a project-wide search for an event/action/target you want to base it off of).

Besides that, you have to edit the SQLite file to contain the parameters, tooltips, etc. It's those three tables that are relevant:

  • event_type_information
  • action_type_information
  • target_type_information

Good luck! Let me know if I can help anywhere. 😄

@JasperAppec JasperAppec changed the title Give Condition-Editor same width as the SAI-Editor Add missing events, actions and targets Mar 25, 2017
@Rushor
Copy link
Contributor

Rushor commented Jan 28, 2020

@jasperrietrae 3 years later...

I understood it! i know how to update the sqllite and the other now! thank you!

first commit here Rushor@ec0b2f4

So everyone who wanna use this version - i'm going to update it soon!

@Faq
Copy link
Collaborator

Faq commented Jan 28, 2020

Better later, than never :)

@Rushor
Copy link
Contributor

Rushor commented Oct 11, 2020

More progress, now also contains taskbar addition to the most needed tc wikis (gameobject, creature, item, quest etc)

Rushor@89b5fd3

@Rushor
Copy link
Contributor

Rushor commented Oct 14, 2020

todo:

SMART_EVENT_SCENE_START = 78, // don't use on 3.3.5a
SMART_EVENT_SCENE_TRIGGER = 79, // don't use on 3.3.5a
SMART_EVENT_SCENE_CANCEL = 80, // don't use on 3.3.5a
SMART_EVENT_SCENE_COMPLETE = 81, // don't use on 3.3.5a
SMART_EVENT_SUMMONED_UNIT_DIES = 82, // CreatureId(0 all), CooldownMin, CooldownMax

//UNUSED_SMART_ACTION_SPAWN_SPAWNGROUP = 131, // Group ID, min secs, max secs, spawnflags (RESERVED, PENDING CHERRYPICK)
//UNUSED_SMART_ACTION_DESPAWN_SPAWNGROUP = 132, // Group ID, min secs, max secs, spawnflags (RESERVED, PENDING CHERRYPICK)
//UNUSED_SMART_ACTION_RESPAWN_BY_SPAWNID = 133, // spawnType, spawnId (RESERVED, PENDING CHERRYPICK)
//SMART_ACTION_INVOKER_CAST = 134, // spellID, castFlags
SMART_ACTION_PLAY_CINEMATIC = 135, // entry, cinematic
SMART_ACTION_SET_MOVEMENT_SPEED = 136, // movementType, speedInteger, speedFraction
//UNUSED_SMART_ACTION_PLAY_SPELL_VISUAL_KIT = 137, // spellVisualKitId (RESERVED, PENDING CHERRYPICK)
SMART_ACTION_OVERRIDE_LIGHT = 138, // zoneId, lightId, fadeInTime
SMART_ACTION_OVERRIDE_WEATHER = 139, // zoneId, weatherId, weatherGrade

SMART_TARGET_FARTHEST = 28, // maxDist, playerOnly, isInLos
SMART_TARGET_VEHICLE_PASSENGER = 29, // seatMask (0 - all seats)
SMART_TARGET_CLOSEST_UNSPAWNED_GAMEOBJECT = 30, // entry(0any), maxDist

@Rushor
Copy link
Contributor

Rushor commented Nov 21, 2020

All new SMART_ACTION_'s are now added :)

@Faq
Copy link
Collaborator

Faq commented Nov 21, 2020

@Faq Faq closed this as completed Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants