Comments (10)
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. 😄
from sai-editor.
Please, update the editor with the new targets, actions and events :(
from sai-editor.
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 :)
from sai-editor.
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
from sai-editor.
@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!
from sai-editor.
Better later, than never :)
from sai-editor.
More progress, now also contains taskbar addition to the most needed tc wikis (gameobject, creature, item, quest etc)
from sai-editor.
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
from sai-editor.
All new SMART_ACTION_'s are now added :)
from sai-editor.
https://github.com/Rushor/SAI-Editor/commits/master
from sai-editor.
Related Issues (20)
- Exceptions thrown after setting phase color HOT 1
- Doesn't close on Windows 7 HOT 1
- Exception thrown when selecting a world database after starting up with 'UseWorldDatabase' setting on false
- Parameters dont work! HOT 15
- ItemExtendedCost.dbc HOT 3
- Have to Click "Generate Comments" Every Time HOT 7
- can not open HOT 3
- Fields not updating HOT 3
- quest_template HOT 4
- Implement Squirrel for auto updating
- New Difficulty flags for SAI Editor.
- [1.5.1] Condition-Editor missing 2 SQL output options: NegativeCondition & ErrorType HOT 11
- The application won't auto connect if "Don't use a database" option is checked
- [Condition-Editor] : GUI + functionality changes wanted HOT 5
- [Eventparameter] Proposal: Remove eventparameters while using eventtype 61 HOT 13
- Crash when deleting last row
- $exception {"未将对象引用设置到对象的实例。"} System.NullReferenceException HOT 1
- Phasemasks can't be used at all HOT 1
- [Error] Cannot open SAI Editor HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sai-editor.