|
|
asandris
Hired Hero
|
posted February 06, 2020 12:21 AM |
|
|
Help me, please, to correctly set a replacement for the Pixies instead of Centaurs in Centaur Stables dwelling on the map.
!#TM1:S1/999/7/255; [Weekly Timer for all players]
!?TM1;
!?OB17/6&1000; Centaur Stables
!!OB998:T?y1 U?y2;
!!FU|y1<>17/y2<>6:E;
!!DW998:M0/118/20; Pixies Growth 20
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted February 06, 2020 01:01 AM |
|
|
No need timer, just:
!?OB17/6&1000; Centaur Stables
!!DW998:M0/?y1/?y2;
!!DW998:M0/118/y2;
|
|
asandris
Hired Hero
|
posted February 06, 2020 09:45 AM |
|
Edited by asandris at 09:46, 06 Feb 2020.
|
Salamandre said: No need timer, just:
!?OB17/6&1000; Centaur Stables
!!DW998:M0/?y1/?y2;
!!DW998:M0/118/y2;
Salamandre, thank you very much.
How could I also set +1 Attack skill to Veil of Darkness (Necropolis) instead of Veil, like the Hall of Valhalla (Citadel) has it.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted February 06, 2020 11:40 AM |
|
|
Well, a manual script could give any hero visiting the town having the veil +1 to attack then set a w var so it doesn't occur twice. But I think a better solution would be UN:C because I don't think, regular erm can remove the veil shroud.
|
|
asandris
Hired Hero
|
posted February 06, 2020 12:19 PM |
|
|
Salamandre said: Well, a manual script could give any hero visiting the town having the veil +1 to attack then set a w var so it doesn't occur twice. But I think a better solution would be UN:C because I don't think, regular erm can remove the veil shroud.
Could we deactivate the building itself (Veil of Darkness) for random maps? Or to change it with another town building?
____________
|
|
Bersy
Honorable
Supreme Hero
|
posted February 06, 2020 12:24 PM |
|
|
|
asandris
Hired Hero
|
posted February 06, 2020 12:33 PM |
|
Edited by asandris at 12:34, 06 Feb 2020.
|
Bersy said: !?OB[type]/[subtype];
!!OB:S; disable to use for all players
!!HE-1:...; custom effect
Thank you, Bersy.
____________
|
|
Bersy
Honorable
Supreme Hero
|
posted February 06, 2020 01:03 PM |
|
|
|
asandris
Hired Hero
|
posted February 06, 2020 01:16 PM |
|
|
Bersy said: Sorry, I was thinking about map object. If you meant bulding in town, it will not work.
Is there any way to manage it somehow?
____________
|
|
Hero_of_Light
Responsible
Supreme Hero
|
posted February 07, 2020 07:22 PM |
|
|
I wanted to make a new hero specialty where the hero gets a random set of spells every week. I applied this script:
!?TM21; //every monday
** Aislin(#73)
!!VRy1:S0 R5; [Random Spell]
!!HE73:My1/1; [Starting Spell]
!!VRy2:S10 R5; [Random Spell]
!!HE73:My2/1; [Starting Spell]
!!VRy3:S27 R5; [Random Spell]
!!HE73:My3/1; [Starting Spell]
!!VRy4:S40 R5; [Random Spell]
!!HE73:My4/1; [Starting Spell]
And it kinda works but on the second day of week 2 it seems to work twice and gives a large number of new spells (it gives some spells on Monday and a lot more on Tuesday). What am I missing here?
____________
Not idly do the leaves of Lorien fall.
|
|
Bersy
Honorable
Supreme Hero
|
posted February 07, 2020 09:15 PM |
|
|
|
Hero_of_Light
Responsible
Supreme Hero
|
posted February 07, 2020 09:25 PM |
|
|
Nope, still occurs twice (once on Monday once on Tuesday).
____________
Not idly do the leaves of Lorien fall.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted February 07, 2020 09:51 PM |
|
|
it doesn't occur tuesday, but Monday on AI turn so you receive results tuesday. Which means your timer runs more than once (insert a debut message after TM and you will see how many times)
|
|
RerryR
Promising
Supreme Hero
Researching Magic
|
posted February 07, 2020 09:52 PM |
|
Edited by RerryR at 21:55, 07 Feb 2020.
|
!?TM2&$once$=1/$day$>1/$weekday$=$monday$/$AI$=0; [Trigger each monday]
or something like this:
[+] Added new event 'OnEveryDay', same as !?TM[xx], but occuring every day for every player/AI without any settings and before
all other !?TM triggers.
Example: !?FU(OnEveryDay)&-1000; every day for any AI
You need to experiment a bit
Edit: Sal was faster and is right, use !!IF:M^Now^, to debug
|
|
Hero_of_Light
Responsible
Supreme Hero
|
posted February 07, 2020 11:04 PM |
|
|
I think it works OK now. However, I don't fully get what you're saying. This won't work for AI players at all? Only for Human players?
____________
Not idly do the leaves of Lorien fall.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted February 07, 2020 11:41 PM |
|
|
Supposing there is no multiplayer action, set your timer 21 with human flag (1000) then loop map for Aislin. He will get spells once (if one human player present) even if he is under AI control.
|
|
Bersy
Honorable
Supreme Hero
|
posted February 08, 2020 12:23 AM |
|
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted February 08, 2020 12:43 AM |
|
|
but he wants it to occur every week
|
|
Hero_of_Light
Responsible
Supreme Hero
|
posted February 08, 2020 11:17 AM |
|
|
That's OK guys, I used the command RerryR gave me and I think it works to my liking.
The premise of this speciality goes like this:
Clairvoyance: Learns a random set of spells at the start of every week.
This speciality will give a great bonus on the first couple of months, since it is most likely that the hero has little access to new spells. However, with each passing week, the probability of learning a new one will diminish until finally there's nothing left to learn.
So every week, a random set of spells will be available to be learned. Heroes with the Clairvoyance speciality will be able to learn them (if they don't know them already). I think it's a nice addition, because in a way it's like some heroes will have a sixth sense (hence clairvoyance) and learn the SAME set of spells intuetively.
Spells will range from level 1 to 5, with low level spells to be more probable and higher level more rarely given. Town Portal, Fly and Dimension Door will be obviously out of the equation.
So what do you think? I will post the final script here when I am done so that if anyone is interested, he can use it as well.
____________
Not idly do the leaves of Lorien fall.
|
|
Bersy
Honorable
Supreme Hero
|
posted February 08, 2020 11:41 AM |
|
|
|
|