|
Thread: scrip custom skills | This thread is pages long: 1 2 · «PREV |
|
NecroSandro
Hired Hero
|
posted March 05, 2019 09:12 PM |
|
|
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.
|
|
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.
|
|
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.
|
|
NecroSandro
Hired Hero
|
posted March 07, 2019 07:25 PM |
|
|
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 ?
|
|
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.
|
|
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.
|
|
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.
|
|
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 ?
|
|
iliveinabox05
Honorable
Famous Hero
|
posted March 08, 2019 10:02 PM |
|
|
Player is certain color, that should be the one.
|
|
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 ?
|
|
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?
|
|
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
|
|
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..
____________
|
|
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 ?
|
|
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.
____________
|
|
|