Create object storm trident
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Create object storm trident
I need to know why I'm mistaken for the code:
using special magic gun in capital doesn't work either
Code: Select all
[item]
image="items/storm-trident.png"
visible_in_fog=yes
x=51
y=19
[/item]
race=merman
[not]
[has_attack]
name="storm trident"
[/has_attack]
[/not]
) items/storm-trident.png
_"should $unit.name pick up the trident?"
_"storm trident^take it"
_"storm trident^leave it"
_"$unit.name cannot use this storm trident! let one of the merfolk who can wield it have it." (
[object]
name= _ "storm trident"
image=items/storm-trident.png
duration=forever
description= _ "this trident gives merfolk the power to throw lightning at their enemies."
[effect]
apply_to=new_attack
name="storm trident"
description= _ "storm trident"
icon=attacks/lightning.png
type=fire
range=ranged
[specials]
{weapon_special_magical}
[/specials]
damage=14
number=3
[/effect]
{lightning_animation "storm trident" 1}
{lightning_animation "storm trident" 2}
{lightning_animation "storm trident" 3}
[/object]
- Pentarctagon
- Project Manager
- Posts: 5592
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Create object storm trident
I have absolutely no idea what this is about or what you're trying to do.
Edit-
What special gun? What capitol? What is the code meant to do? What is it actually doing?
Edit-
What special gun? What capitol? What is the code meant to do? What is it actually doing?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Create object storm trident
i need create storm trident weapon
game error"(weapon_special_magical)" is missing
no capitol, is shift. "(weapon_special_magical)" in shift it also gives error.
I need to create the object on a stage(scenario) so I can grab it. I don't know what the code should look like
game error"(weapon_special_magical)" is missing
no capitol, is shift. "(weapon_special_magical)" in shift it also gives error.
I need to create the object on a stage(scenario) so I can grab it. I don't know what the code should look like
- Pentarctagon
- Project Manager
- Posts: 5592
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Create object storm trident
Where did you copy the current code you posted from?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Create object storm trident
on the wesnoth page https://wiki.wesnoth.org/InterfaceActionsWML#.5Bitem.5D . Says seach(under /data/core/macros).)the code is from there and it should be fine
Re: Create object storm trident
sorry I post the same question in several places because I speak Spanish
- Pentarctagon
- Project Manager
- Posts: 5592
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Create object storm trident
In your code then, all you should need to do is
{OBJ_TRIDENT_STORM 5 5 some_unique_id}
, where the two 5
s are the x and y coordinates of the hex the trident should be placed on.99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Create object storm trident
have error: unterminated preprocessor definition
[item]
image="items/storm-trident.png"
visible_in_fog=yes
x=51
y=19
[/item]
#define OBJ_TRIDENT_STORM 51 19 8
{PICKUPPABLE_ITEM {8} {51} {19} (
race=merman
[not]
[has_attack]
name="storm trident"
[/has_attack]
[/not]
) items/storm-trident.png
_"Should $unit.name pick up the trident?"
_"storm trident^Take it"
_"storm trident^Leave it"
_"$unit.name cannot use this Storm Trident! Let one of the merfolk who can wield it have it." (
[object]
name= _ "Storm Trident"
image=items/storm-trident.png
duration=forever
description= _ "This trident gives merfolk the power to throw lightning at their enemies."
[effect]
apply_to=new_attack
name="storm trident"
description= _ "storm trident"
icon=attacks/lightning.png
type=fire
range=ranged
[specials]
{WEAPON_SPECIAL_MAGICAL}
[/specials]
damage=14
number=3
[/effect]
{LIGHTNING_ANIMATION "storm trident" 1}
{LIGHTNING_ANIMATION "storm trident" 2}
{LIGHTNING_ANIMATION "storm trident" 3}
[/object]
- Pentarctagon
- Project Manager
- Posts: 5592
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Create object storm trident
Can you attach the entire file you're using this in?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Create object storm trident
Code: Select all
# This file was generated using the scenario editor.
#
# If you edit this file by hand, then you shouldn't use the
# scenario editor on it afterwards. The editor completely
# rewrites the file when it saves it, which will lose any WML
# that the editor doesn't support.
current_time=0
description="map maxi"
experience_modifier=70
id=656
map_data="Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu
Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu
Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu, Xu,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_"Dawn"
red=-25
[/time]
[item]
image="items/storm-trident.png"
visible_in_fog=yes
x=11
y=12
[/item]
#define OBJ_TRIDENT_STORM 11 12 7
{PICKUPPABLE_ITEM {7} {11} {12} (
race=merman
[not]
[has_attack]
name="storm trident"
[/has_attack]
[/not]
) items/storm-trident.png
_"Should $unit.name pick up the trident?"
_"storm trident^Take it"
_"storm trident^Leave it"
_"$unit.name cannot use this Storm Trident! Let one of the merfolk who can wield it have it." (
[object]
name= _ "Storm Trident"
image=items/storm-trident.png
duration=forever
description= _ "This trident gives merfolk the power to throw lightning at their enemies."
[effect]
apply_to=new_attack
name="storm trident"
description= _ "storm trident"
icon=attacks/lightning.png
type=fire
range=ranged
[specials]
{WEAPON_SPECIAL_MAGICAL}
[/specials]
damage=14
number=3
[/effect]
{LIGHTNING_ANIMATION "storm trident" 1}
{LIGHTNING_ANIMATION "storm trident" 2}
{LIGHTNING_ANIMATION "storm trident" 3}
[/object]
)}
[item]
image="items/storm-trident.png"
visible_in_fog=yes
x=51
y=19
[/item]
#define OBJ_TRIDENT_STORM 51 19 8
{PICKUPPABLE_ITEM {8} {51} {19} (
race=merman
[not]
[has_attack]
name="storm trident"
[/has_attack]
[/not]
) items/storm-trident.png
_"Should $unit.name pick up the trident?"
_"storm trident^Take it"
_"storm trident^Leave it"
_"$unit.name cannot use this Storm Trident! Let one of the merfolk who can wield it have it." (
[object]
name= _ "Storm Trident"
image=items/storm-trident.png
duration=forever
description= _ "This trident gives merfolk the power to throw lightning at their enemies."
[effect]
apply_to=new_attack
name="storm trident"
description= _ "storm trident"
icon=attacks/lightning.png
type=fire
range=ranged
[specials]
{WEAPON_SPECIAL_MAGICAL}
[/specials]
damage=14
number=3
[/effect]
{LIGHTNING_ANIMATION "storm trident" 1}
{LIGHTNING_ANIMATION "storm trident" 2}
{LIGHTNING_ANIMATION "storm trident" 3}
[/object]
)}
Last edited by Pentarctagon on April 22nd, 2021, 6:00 pm, edited 1 time in total.
Reason: [c] -> [code]
Reason: [c] -> [code]
- Pentarctagon
- Project Manager
- Posts: 5592
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Create object storm trident
So, the first thing, is the warning at the top of the file is very important:
The scenario editor does not support adding that kind of functionality, and if you were to add it yourself manually then the scenario editor would end up deleting it the next time you saved the scenario.
For what you're trying to do here specifically, I recommend reading this if you haven't already, as well as looking through the WML Reference generally.
Another good way to learn is to download someone else's map pack or scenario and look at how they did things.
Attached as well is your scenario as an add-on rather than a scenario editor file, with the storm tridents placed on the map.
Code: Select all
# This file was generated using the scenario editor.
#
# If you edit this file by hand, then you shouldn't use the
# scenario editor on it afterwards. The editor completely
# rewrites the file when it saves it, which will lose any WML
# that the editor doesn't support.
For what you're trying to do here specifically, I recommend reading this if you haven't already, as well as looking through the WML Reference generally.
Another good way to learn is to download someone else's map pack or scenario and look at how they did things.
Attached as well is your scenario as an add-on rather than a scenario editor file, with the storm tridents placed on the map.
- Attachments
-
- addon_name.zip
- (2.07 KiB) Downloaded 130 times
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Create object storm trident
IMO it actually may be best to consider abandoning WML in the long run. Even lua is
prettier.
> The scenario editor does not support adding that kind of functionality
That may be a fine answer, but the question is whether it should be that way. A
debug-console can be very useful.
Anyone remembers Zak McKracken? They had an interesting DSL - not that I'd
use a DSL like this today, but that was really much simpler to get going than
C (or whatever else they used for Zak McKracken and the other games back
then).
prettier.
> The scenario editor does not support adding that kind of functionality
That may be a fine answer, but the question is whether it should be that way. A
debug-console can be very useful.
Anyone remembers Zak McKracken? They had an interesting DSL - not that I'd
use a DSL like this today, but that was really much simpler to get going than
C (or whatever else they used for Zak McKracken and the other games back
then).
Re: Create object storm trident
And how do I get the troops to pick it up?
Re: Crear tridente de tormenta de objetos
How did you pass the code to me, only sirenids can take it