mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 16:33:31 +00:00
Variable free item pickup!
This commit is contained in:
parent
10e087b4d2
commit
1aeeb858a6
@ -253,16 +253,6 @@
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=took_dagger
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=took_ring
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
#close one of the two northern tunnels
|
||||
{RANDOM 1..10}
|
||||
|
||||
@ -648,6 +638,7 @@
|
||||
# Get Ring event
|
||||
[event]
|
||||
name=moveto
|
||||
id=take_ring
|
||||
delayed_variable_substitution=no
|
||||
first_time_only=no
|
||||
|
||||
@ -660,13 +651,6 @@
|
||||
[/not]
|
||||
[/filter]
|
||||
|
||||
[filter_condition]
|
||||
[variable]
|
||||
name=took_ring
|
||||
equals=0
|
||||
[/variable]
|
||||
[/filter_condition]
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
|
||||
@ -697,10 +681,10 @@
|
||||
y=$y1
|
||||
[/remove_item]
|
||||
|
||||
[set_variable]
|
||||
name=took_ring
|
||||
value=1
|
||||
[/set_variable]
|
||||
[event]
|
||||
id=take_ring
|
||||
remove=true
|
||||
[/event]
|
||||
[/command]
|
||||
[/option]
|
||||
|
||||
@ -835,6 +819,7 @@
|
||||
|
||||
[event]
|
||||
name=moveto
|
||||
id=find_dagger
|
||||
first_time_only=no
|
||||
|
||||
[filter]
|
||||
@ -846,23 +831,12 @@
|
||||
[/not]
|
||||
[/filter]
|
||||
|
||||
[filter_condition]
|
||||
[variable]
|
||||
name=took_dagger
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
[/filter_condition]
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
message= _ "How odd. Someone has carved a crude fountain out of the stone at the end of the passage. The freezing water pours out into a large pool. At the bottom of the pool I can see a skeleton still gripping a sword. The blade seems to glow faintly blue. The pool isn’t very deep, I could easily wade in and pick it up. But someone else has carved a crude message in the wall. <i>“If you dare to take this blade here, your greatest fear will surely appear.”</i> It looks like a nice sword, but do I dare chance it?"
|
||||
[option]
|
||||
message= _ "I fear no creature, I will take the blade!"
|
||||
[command]
|
||||
[set_variable]
|
||||
name=took_dagger
|
||||
value=1
|
||||
[/set_variable]
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
@ -904,6 +878,11 @@
|
||||
speaker=Purple Abomination
|
||||
message= _ "The voices say I have no choice, I must attack!"
|
||||
[/message]
|
||||
|
||||
[event]
|
||||
id=find_dagger
|
||||
remove=true
|
||||
[/event]
|
||||
[/command]
|
||||
[/option]
|
||||
|
||||
@ -1081,7 +1060,6 @@
|
||||
[/message]
|
||||
|
||||
{CLEAR_VARIABLE naga_ambush}
|
||||
{CLEAR_VARIABLE took_dagger,took_ring}
|
||||
[/event]
|
||||
|
||||
# if player runs out of time, display time over message
|
||||
|
Loading…
x
Reference in New Issue
Block a user