![]() |
![]() |
|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
I hope to create a discussion where at one place You'll find what You're looking for according to scipting.
First of all I have some exp. in common script writing but the many unsuccesful tries made me pretty confused about H5 Editor scripts. Instead of spending hours with searching for non-clear tutorials and helps I ask here for examples and maybe tricks for concrete objectives. |
|||
|
At first here are some examples:
Non triggered functions - if there's an untriggered function is it executed on first day always? First Day Objective(s) popping up - simply I couldnt trigger my objectives to pop up on first day. Tried initially invisible and inactive and then trigger for first day to get active or visible. With no success on scripting I found out a trick. The hero has reached a town on first day this is where the story starts so I made it as an objective. The next task is dependent of this and as capturing this town is fulfilled at the start so the next one is popping up on first day. Not the best one but works! Kill 'em all - how is it possible to remove it? Limiting area - I've created a region wich my hero shouldn't be able to enter until he hasn't finished with completing an objective. Question is how to script it? Limiting area 2 - an other kind of region usage. How to script AI to stay in the desired region as long as I want (for example until a specified day or fulfillment of an objective) Ambush - how to script an attack of a non visible enemy when entering the corresponding region? New player - is it possible to write a script for adding a new player (new color) ingame? For example I reach a town and after I capture it my old town should turn into the own of another (possibly non-existing) player. If it's inpossible can it be again made a neutral town with a script as for example having a rebell in town? How? For a start this might be enough. So I ask all those who mastered themself in scripting please help us dummies. Cheers |
||||
|
Just more trouble...
I tried PWLtexture. Created as told in the tutorial. 1024x1024 have both tga and psd file. After I create the new texture in the object browser at SrcName I click the value to add my picture but after opening no path appears at value. The file is in the maps directory (tried both root/maps and root/editor/h5mmods/...) but none of the above formats work. Anyway I tried to export the thing. It would work but instead of my picture blank transparent apeears while loading.. which is funny by the way but can't figure out what could go wrong with the picture. Oh and I tried to save both 16 and 32 bit TGA.. unlucky. |
||||
|
ok.. then an easier task for those who read maybe I'll get a comment...
a sample script which I checked many times to be correct and I think it is but still it doesn't want to work: function dwellings() if GetObjectiveState("PreTaskDwelling",OBJECTIVE_COMPLETED) then OpenCircleFog(50,7,0,14,0); OpenCircleFog(46,25,0,14,0); OpenCircleFog(28,50,0,14,0); end; end; Trigger(OBJECTIVE_STATE_CHANGE_TRIGGER,"PreTaskDwelling","dwellings") I tried triggering in the map properties under the objective's StateChengeTrigger... But why? |
||||
|
use SetRegionBlocked command to turn the area inaccessible at the beginning of the map, but available when objective changes...
Surround him with blocked regions for a while. If the hero may stand still, use EnableHeroAI command.
mark area and set regione enter trigger to run StartCombat command.
Should be doable. You may reserve and deploy a new players hero if it does not work with simple SetObjectOwner. For PWL you may see here, but the description there is a bit uncomplete indeed. Haven't had time and will to update. |
||||
|
well thanks Pitsu, recently I've registered at Celestial... and found lot of useful informations though still none of my script works. I really do think I understand the way (meanwhile I'm learning Java and I think I'm not confused at all) but somewhy I can't make scripts work.
I could read on celestial U'r comment Pitsu and again thanks. Well ID, 0 was in my head as the first ID for everything I forgot to have a Player_None and also I've tried this if GetObjectiveState("PreTaskDwelling") == OBJECTIVE_COMPLETED but somewhere I saw the code written as above so I tried that. Now I give a try that way.. and pray for success... again:-) |
||||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

