Welcome to the Builder Academy

Question Age question - Down side to using a spell

More
12 May 2017 00:34 #6719 by JTP
Im trying to make a downside to using haste by wanting to add 1 year each time cast on someone.

Here is what i tried but it doesnt add anyting, see attached picture. Any idea why it dont work ?

I also tried without the brackets and !IS_NPC. Just GET_AGE(victim) += 1;
Attachments:

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

More
12 May 2017 01:51 #6720 by WhiskyTest
APPLY_AGE does it by altering the birthday, like this:
Code:
ch->player.time.birth -= <amount>

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

More
12 May 2017 06:22 - 12 May 2017 07:19 #6721 by JTP
So

ch->player.time.birth -= 1;

Why -= ?

It needs to make the receiver of the spell 1 year older, each time haste is cast on them. Not the caster, or else the caster wont help anyone i think haha.

Makes good sinde that the receiver gets older from fighting more :)
Last edit: 12 May 2017 07:19 by JTP.

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

More
12 May 2017 07:20 - 12 May 2017 09:34 #6722 by JTP
Hmm it compiled, but it didnt change the age :(

+= 1 didnt either.
Last edit: 12 May 2017 09:34 by JTP.

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

More
13 May 2017 15:24 - 13 May 2017 15:25 #6728 by JTP
So maybe its not possible to change players age ?
Last edit: 13 May 2017 15:25 by JTP.

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

More
14 May 2017 13:31 #6729 by Parnassus
To slightly derail this topic, does age actually do anything? I know it's there on the score but I always thought it was more of a record-keeper thing than anything, a sort of cute way of showing when you started playing. I've heard of muds where you get slower and weaker as you age but I didn't think that TBA did that. If it's just a record-keeper, why mess with it?

To get back on the tracks, I notice that age is a field in object applies. If you check the code for that, it might lead to a way for a more permanent application.

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

Time to create page: 0.296 seconds