adamhun
A
adamhun
Hi all!
I'm a not a pro at triggers but I can make some easy things. Well, this thing got me a headache. So I want to make a switchable uniform. This is the uniform on.
I'm a not a pro at triggers but I can make some easy things. Well, this thing got me a headache. So I want to make a switchable uniform. This is the uniform on.
-
uniform on
-

Events
-


Player - Player 1 (Red) types a chat message containing -uniform on as An exact match
-
-

Conditions
-


(Entered chat string) Equal to -uniform on
-
-

Actions
-


Set playerpos = (Position of Villager (Male) 0209 <gen>)
-


Game Cache - Create a game cache from MahRPG.w3v
-


Game Cache - Store Villager (Male) 0209 <gen> as Player(civilian) of Unit in (Last created game cache)
-


Unit - Remove Villager (Male) 0209 <gen> from the game
-


Unit - Create 1 soldier for Player 1 (Red) at playerpos facing Default building facing degrees
-


Set soldier = (Last created unit)
-


Trigger - Turn on uniform off <gen>
-


Trigger - Turn off (This trigger)
-
-
-
uniform off
-

Events
-


Player - Player 1 (Red) types a chat message containing -uniform off as An exact match
-
-

Conditions
-


(Entered chat string) Equal to -uniform off
-
-

Actions
-


Set playerpossoldier = (Position of (Last created unit))
-


Unit - Remove soldier from the game
-


Game Cache - Restore player(civilian) of Unit from (Last created game cache) for Player 1 (Red) at playerpossoldier facing (Position of (Triggering unit))
-


Trigger - Turn on uniform on <gen>
-


Trigger - Turn off (This trigger)
-
-
Last edited by a moderator:





