Welcome to the Builder Academy

Question Need help with this meditate skill

More
22 Mar 2016 21:32 - 22 Mar 2016 21:36 #5671 by JTP
In structs.h standing is 8. I added flying as 9 and meditate as 10...total of 11, because dead is 0.

Not sure i undertand what you mean by it ?

MEditate Works as it should, until the point where i move or attack. I need to prevent that.
Last edit: 22 Mar 2016 21:36 by JTP.

Please Log in or Create an account to join the conversation.

More
22 Mar 2016 21:44 #5672 by JTP
In interpreter.c i had:
{ "meditate" , "medita" , POS_DEAD, do_meditate , 1, 0 },

i changed it to POS_MEDITATE

and now i dont move but i get the message from sitting, now if i sit i cant perform mediate, and get the ,message that i need to stand first lol.

someone pls eplain how the list in interpreter works

Please Log in or Create an account to join the conversation.

More
22 Mar 2016 21:46 #5673 by JTP
If i set it to :
{ "meditate" , "medita" , POS_RESTING, do_meditate , 1, 0 },

then i can meditate, but i can walk again

Please Log in or Create an account to join the conversation.

More
22 Mar 2016 21:53 #5674 by JTP
With

{ "meditate" , "medita" , POS_STANDING, do_meditate , 1, 0 },

Then if i sit and type meditate, then it asks me to get on my feet first :(

Please Log in or Create an account to join the conversation.

More
23 Mar 2016 00:00 #5675 by JTP
Been working on this for more then 8 hours. Help :( its giving me grey hair, i should be sleeping atm haha

Please Log in or Create an account to join the conversation.

More
23 Mar 2016 00:21 - 23 Mar 2016 00:23 #5676 by JTP
My best guess is that im missing something, but cant find out what.

Sitting cant move or cast spell, and get the right message
Resting cant move and get its own message.
Fighting cant move and get the right message.
At that place i then added message for meditating, cus there is only one place in the code that uses: Nah...
That comes when your resting and try to walk or cast spell.

But i can still move and cast spells while im meditating.
Last edit: 23 Mar 2016 00:23 by JTP.

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds