You don't have the first clue how a script works, do you? That looks like you just typed random words and expected it to work. I'd check a scripting tutorial, as you seem to lack the very basics
I only wanted to know, how to put it in the right slots, that you told me.
All the other scripts I loaded are working fine and I know how to use 'em.
I already said, please don't laugh my stupid trials.
You just gave me a constance and a void, but this doesn't appear in any slot.
That's why I asked if it is 2 scripts, one item and one global script.
I would be glad, if you will answer this question.
(btw: I never called myself a scripter)
Only this alone doesn't appear in any slot.
const int BUSH_COMBO_ID = 1966; void updateBushes() { unless(Game->Generic[GEN_CANSLASH]) return; combodata cd = Game->LoadComboData(BUSH_COMBO_ID); cd->Type = CT_BUSH; }
One of my latest versions, while trying to make two scripts of it (global and item)
const int BUSH_COMBO_ID = 1966; global script Bushes {void updateBushes() { unless(Game->Generic[GEN_CANSLASH]) return; combodata cd = Game->LoadComboData(BUSH_COMBO_ID); cd->Type = CT_BUSH; } } item script Bushes {void updateBushes() { unless(Game->Generic[GEN_CANSLASH]) return; combodata cd = Game->LoadComboData(BUSH_COMBO_ID); cd->Type = CT_BUSH; } }
But in this case the report says, the scripts need a void run
So I had absolutely no other Idea, than doing THIS (which is probably the most awkward thing, I ever tried)
const int BUSH_COMBO_ID = 1966; void updateBushes() { unless(Game->Generic[GEN_CANSLASH]) return; combodata cd = Game->LoadComboData(BUSH_COMBO_ID); cd->Type = CT_BUSH; } global script Bushes {void run (int updateBushes) { unless(Game->Generic[GEN_CANSLASH]) return; combodata cd = Game->LoadComboData(BUSH_COMBO_ID); cd->Type = CT_BUSH; } } item script bushes {void run(int updateBushes) { unless(Game->Generic[GEN_CANSLASH]) return; combodata cd = Game->LoadComboData(BUSH_COMBO_ID); cd->Type = CT_BUSH; } }
But THIS was succesful in compiling and now I have scripts, available to put in the slots.
Don't really know, if THAT was a good idea
Edited by Bagu, 13 January 2020 - 08:29 PM.