
Dynamic Script Usage Questions
On the plan placed event, I replace the plan with a built house. The problem is that give house fails where a player could place the plan. I don't know the reason and it's annoying.
Re: Dynamic Script Usage Questions
On the plan placed event, I replace the plan with a built house. The problem is that give house fails where a player could place the plan. I don't know the reason and it's annoying.
Just when you think you know something, you have to look at it in another way, even though it may seem silly or wrong. You must try! - John Keating, "Dead Poets Society"
Re: Dynamic Script Usage Questions
Not always fails, mostly it works. I haven't figured out what circumstances causes it to fail.
EDIT:
I tested it for some time, and the bug haven't occured since then. It's strange, because I haven't fixed it.
EDIT:
I tested it for some time, and the bug haven't occured since then. It's strange, because I haven't fixed it.
Re: Dynamic Script Usage Questions
Hmm it will not give house untill there will be space for it. u have to remove units/groups, objects etc. It works fine for me, i mean : removeplan > givehouse.
Check log.txt in KamRemake folder log for more information, maybe u give some bad values to the action script
Check log.txt in KamRemake folder log for more information, maybe u give some bad values to the action script

Re: Dynamic Script Usage Questions
Units might be an explanation. Object's tile would be marked as red X when searching place for the building plan.
Re: Dynamic Script Usage Questions
How to make a script to not share fog with ally from mission start?
I thought it should be like this:
I thought it should be like this:
But it results in this:
You do not have the required permissions to view the files attached to this post.
I fixed The Shattered Kingdom and The Peasants Rebellion here!
Re: Dynamic Script Usage Questions
@Vatrix: IIRC you need to set FOW sharing to be only 1-way. Do not share the AIs FOW with the player back.
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
Re: Dynamic Script Usage Questions
I don't think so,
This is working script from TSK07
EDIT: No, it's also not working, maybe it's not possible to do that?
This is working script from TSK07
Maybe I'm missing something?[/color]
EDIT: No, it's also not working, maybe it's not possible to do that?
I fixed The Shattered Kingdom and The Peasants Rebellion here!
Re: Dynamic Script Usage Questions
I think I had that problem before. Try that:
Love the Bomb!
Campaign http://knightsandmerchants.net/forum/vi ... f=5&t=1749
MultiplayerMaps http://knightsandmerchants.net/forum/vi ... f=5&t=2302
AutoComplete http://knightsandmerchants.net/forum/vi ... =32&t=2722
Campaign http://knightsandmerchants.net/forum/vi ... f=5&t=1749
MultiplayerMaps http://knightsandmerchants.net/forum/vi ... f=5&t=2302
AutoComplete http://knightsandmerchants.net/forum/vi ... =32&t=2722
Re: Dynamic Script Usage Questions
Nope it just covers all in fog.
I fixed The Shattered Kingdom and The Peasants Rebellion here!
Re: Dynamic Script Usage Questions
Nope it just covers all in fog.
Love the Bomb!
Campaign http://knightsandmerchants.net/forum/vi ... f=5&t=1749
MultiplayerMaps http://knightsandmerchants.net/forum/vi ... f=5&t=2302
AutoComplete http://knightsandmerchants.net/forum/vi ... =32&t=2722
Campaign http://knightsandmerchants.net/forum/vi ... f=5&t=1749
MultiplayerMaps http://knightsandmerchants.net/forum/vi ... f=5&t=2302
AutoComplete http://knightsandmerchants.net/forum/vi ... =32&t=2722
Re: Dynamic Script Usage Questions
I have some fog revealers in static script and I want to see only what those revealers revealed (you can look on them in mapED if you download TPR1) and not what my ally revealed on mission start.
I fixed The Shattered Kingdom and The Peasants Rebellion here!

Posts: 125
Joined: 03 Aug 2015, 09:12
KaM Skill Level: Skilled
Website: https://kp-wiki.org/
Location: the Netherlands
Re: Dynamic Script Usage Questions
I have some fog revealers in static script and I want to see only what those revealers revealed (you can look on them in mapED if you download TPR1) and not what my ally revealed on mission start.
In short this means that "hand id" 1 and 2 do not share their view with 0.
If this does not work then I am afraid there will be a lot more work required.
~~ The magic wizard of PascalScriptus. ~~
KP-Wiki :
KP-Wiki :
- Information about Knights Province scripting ( unofficial )
- Information about several hosting/server maintenance basics
- Other random stuff
Re: Dynamic Script Usage Questions
That does not do what I want
. Look into fast chat for more info.

I fixed The Shattered Kingdom and The Peasants Rebellion here!
Re: Dynamic Script Usage Questions
I have some fog revealers in static script and I want to see only what those revealers revealed (you can look on them in mapED if you download TPR1) and not what my ally revealed on mission start.

Love the Bomb!
Campaign http://knightsandmerchants.net/forum/vi ... f=5&t=1749
MultiplayerMaps http://knightsandmerchants.net/forum/vi ... f=5&t=2302
AutoComplete http://knightsandmerchants.net/forum/vi ... =32&t=2722
Campaign http://knightsandmerchants.net/forum/vi ... f=5&t=1749
MultiplayerMaps http://knightsandmerchants.net/forum/vi ... f=5&t=2302
AutoComplete http://knightsandmerchants.net/forum/vi ... =32&t=2722
Who is online
Users browsing this forum: No registered users and 3 guests