Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 4 - Lands of Axeoth > Thread: scrip custom skills
Thread: scrip custom skills This thread is 2 pages long: 1 2 · «PREV
NecroSandro
NecroSandro


Hired Hero
posted March 05, 2019 09:12 PM
Edited by NecroSandro at 22:36, 05 Mar 2019.

iliveinabox05 said:
Received. I'll download it and open it up when I get home. It will be a little later tonight, but I'll get to it.

Edit. Hate to make excuses, but when I got home, the power went out >.< I'll try to take a look tonight.


no problem

edit : i think i found, change boolean variable by numeric variable do it work.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
iliveinabox05
iliveinabox05


Honorable
Famous Hero
posted March 05, 2019 11:08 PM

Boolean variables work fine and are better for true / false. I think you just need a timed event that initializes all your variables, but I'll figure it out soon.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
iliveinabox05
iliveinabox05


Honorable
Famous Hero
posted March 06, 2019 04:24 AM

Okay, fixed it for you and shared it with you from my google drive.

There were two problems:

1) I kind of lied to you when I told you how to set the conditional. Instead of "if askQuestion equals true," it should be "if askQuestion"

The way you get that is by clicking on the condition, and then selecting "variable", and then you select the variable of choice, in this case askQuestion.

2) Your initialization event runs for every player, but we only want our custom skill variables to be initialized once for the red player. What was actually happening is that they were being initialized for every player, so even if you set it false on red's turn, the next color would set it back to true.

I updated this portion to check if the player was red, and only then to set the custom skill variables.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NecroSandro
NecroSandro


Hired Hero
posted March 07, 2019 07:25 PM
Edited by NecroSandro at 20:19, 07 Mar 2019.

Hello, thank you i check it now and i come back.

Edit: Noce thank you.

I have some question questions

1/Do you know if its possible to build a script wo can modify stat of monster ?like, player get hidden skill who give + 5 atk to naga.

2/ I have a problem with a script at 27,54
This quest triggers a custom event on the opposing hero (39,74) , but the message is displayed on the wrong turn .

3/ Can you tell me why I have a symbol for every line break or space ?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
iliveinabox05
iliveinabox05


Honorable
Famous Hero
posted March 07, 2019 11:28 PM

NecroSandro said:
1/Do you know if its possible to build a script wo can modify stat of monster ?like, player get hidden skill who give + 5 atk to naga.


I don't think this is possible. What you can do is check if the army has nagas, and then add attack to a hero in the army.

NecroSandro said:
2/ I have a problem with a script at 27,54
This quest triggers a custom event on the opposing hero (39,74) , but the message is displayed on the wrong turn .


Take a look at which check boxes you have checked for the event to run during different player turns, and make sure they are all unchecked except for the player who's turn you want it to run on.

NecroSandro said:
3/ Can you tell me why I have a symbol for every line break or space ?


Not sure. Are you copying and pasting your text from somewhere into your map? Or are you typing your text directly into your map?

I think I recall having issues like that when I copied from a word document and pasted into the text box on the map, and I had to manually fix them.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NecroSandro
NecroSandro


Hired Hero
posted March 08, 2019 10:44 AM

iliveinabox05 said:


Take a look at which check boxes you have checked for the event to run during different player turns, and make sure they are all unchecked except for the player who's turn you want it to run on.



Yes that's exactly what I did, but the message always appears to the wrong player.




 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
iliveinabox05
iliveinabox05


Honorable
Famous Hero
posted March 08, 2019 06:35 PM

Ah the check boxes are for owner.

In the script itself, add a conditional and check for the current player to be blue (if that's who you want the event to apply to) and put the rest of your scripts in that conditional.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NecroSandro
NecroSandro


Hired Hero
posted March 08, 2019 09:52 PM

iliveinabox05 said:
Ah the check boxes are for owner.

In the script itself, add a conditional and check for the current player to be blue (if that's who you want the event to apply to) and put the rest of your scripts in that conditional.


i dont find current player in condition ?


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
iliveinabox05
iliveinabox05


Honorable
Famous Hero
posted March 08, 2019 10:02 PM

Player is certain color, that should be the one.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NecroSandro
NecroSandro


Hired Hero
posted March 08, 2019 10:58 PM

iliveinabox05 said:
Player is certain color, that should be the one.


yes but if you see, i only have owner or color, current player is not listed? maybe because is on army script ?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
iliveinabox05
iliveinabox05


Honorable
Famous Hero
posted March 09, 2019 12:21 AM

Right, but I thought you knew what color's turn it should be run on? Is not not for a specific player?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NecroSandro
NecroSandro


Hired Hero
posted March 09, 2019 12:28 PM

for example, i want red player trigger a event for blue player. this event remove atk on blue army with a displayed message ( in blue turn).

But i found another way.
in map event-> Timed event->
Day 1 a init variable and at day 1 i check variable (every day)
if current player is blue and 'var' = 1 then -> Trigger custom event named 'var'

and for finish, i create a conditional action on blue player
if 'var' = 1 then -> Display message

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Karmakeld
Karmakeld


Responsible
Supreme Hero
posted March 11, 2019 06:36 PM

Hi guys.
Place a timed event on the hero that you want to rechieve the daily bonus. Set the script to run daily and check if the "wantsMovement" variable is true. Then give movement to this army. That rest of the scripts should be fine as iLive has described them.
And indeed the moment script is bugged. Can't remember to fix value if it's x10 or ?? but you can just search for it or look at a script guide on celestialheavens.com there a fix is described. Good luck. And congrats with the kid..
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NecroSandro
NecroSandro


Hired Hero
posted March 14, 2019 02:02 PM

Karmakeld said:
Hi guys.
Place a timed event on the hero that you want to rechieve the daily bonus. Set the script to run daily and check if the "wantsMovement" variable is true. Then give movement to this army. That rest of the scripts should be fine as iLive has described them.
And indeed the moment script is bugged. Can't remember to fix value if it's x10 or ?? but you can just search for it or look at a script guide on celestialheavens.com there a fix is described. Good luck. And congrats with the kid..


Hi thank you all working perfectly now. Did you know if we can decrease movement point ?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Karmakeld
Karmakeld


Responsible
Supreme Hero
posted March 16, 2019 10:09 AM

NecroSandro said:
Karmakeld said:
Hi guys.
Place a timed event on the hero that you want to rechieve the daily bonus. Set the script to run daily and check if the "wantsMovement" variable is true. Then give movement to this army. That rest of the scripts should be fine as iLive has described them.
And indeed the moment script is bugged. Can't remember to fix value if it's x10 or ?? but you can just search for it or look at a script guide on celestialheavens.com there a fix is described. Good luck. And congrats with the kid..


Hi thank you all working perfectly now. Did you know if we can decrease movement point ?


Good to hear
There's no working script to decrease movement. You can only increase.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 2 pages long: 1 2 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0321 seconds