Forum

> > Stranded II > Scripts > Conditions with letters
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Conditions with letters

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Conditions with letters

Stranded_Guy2910
User Off Offline

Zitieren
I know I made a thread about it. But I made a big mistake and put it on the mod forum. (can close or delete this one on the mod forum)

The problem is with this script:
1
2
3
4
5
6
7
8
9
10
11
on:use {
     $spell=inputwin("Write your spell",1,"Cancel","Cast the Spell");
     if ($spell=="spell name") {
                     addstate "unit",1,17;
                     msg "Imortal spell casted",4;
                     play "magic.wav";
     }else{
     msg "What you wrote isn't a spell",3;
     speech "negative";
     }
}

The problem is that the script only works when the spell name is a number, but I saw a map using the script to save the variable as a name ( see it here )

Can somebody help me?

alt Re: Conditions with letters

Hurri04
Super User Off Offline

Zitieren
dunno then.

although I'd recommend using s2 cmd dialogue instead since it's very hard to guess the right name for a spell (unless you give a hint). and also it's work to type a spell again and again so the buttons in a dialogue would be better.

alt Re: Conditions with letters

Stranded_Guy2910
User Off Offline

Zitieren
user Hurri04 hat geschrieben
dunno then.

although I'd recommend using s2 cmd dialogue instead since it's very hard to guess the right name for a spell (unless you give a hint). and also it's work to type a spell again and again so the buttons in a dialogue would be better.


Yes, but the big deal is to go find the spells. Just like: you must create an wilson and talk to him 'till he give you a spell and things like that.

alt Re: Conditions with letters

Hurri04
Super User Off Offline

Zitieren
then make different dialogue pages with combinations for the different enabled spell-buttons and open the related page upon using by checking the conditions.

alt Re: Conditions with letters

Stranded_Guy2910
User Off Offline

Zitieren
user Hurri04 hat geschrieben
then make different dialogue pages with combinations for the different enabled spell-buttons and open the related page upon using by checking the conditions.


Of course, how could I be so stupid and don't think on it.
Thanks man.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht